Customize log functionality

What is the recommended way to override/customize log functionality?

Can I use Log.InitializeWith<MyCustomLogger>(); ?

Litium version: 7.2

Yes, and MyCustomLogger inherits from Litium.Owin.Logging.ILog.

You can find an example of how to do this in our Serilog add-on over at GitHub: https://github.com/distancify/Distancify.LitiumAddOns.Serilog/tree/master/Distancify.LitiumAddOns.Serilog

3 Likes