How to initialize the Serilog logger in a WCF service
I am new to c# and I am trying to using serilog in a WCF application. I need to create the logger once only when the service is initialized. However WCF does not seem to have constructors. How can I create the logger below once only and have it available to the rest of the application. Any code examples would be greatly appreciated.
ILogger logger = new LoggerConfiguration()
Log.Logger = logger;