### Setup ### #### Log.cs #### Create your own ``Log.cs`` in your Root-Namespace (you can use the below mentioned class). You can now also remove all ``using Serilog;``-imports in the classes where you want to log, because the class is everywhere in the namespace visble and easy accessible. #### Serilog-Output Template ### Now you can use the added properties (here: ``MemberName``, ``FilePath``, ``FileName``, ``LineNumber``) in your outputTemplate: _:warning: Note: For more performance you can remove/uncomment unused properties, here e.g. ``FilePath`` and ``LineNumber`` in ``SetContext(...)``_ ##### Example ##### OutputTemplate: `{Timestamp:HH:mm:ss,fff} {Level:u3} {FileName} [{MemberName}] {Message:lj}{NewLine}{Exception}` Produces the following output: ``18:16:40,183 INFO LoggerInitializer [InitLogger] Shutting down logger; Flushing data...``