If you’re using Serilog for logging in an application but it doesn’t seem to be logging anything then it’s possible to use the SelfLog functionality to have it report it’s own errors to help with debugging.

The easiest way is normally to have it send these messages to the console.

Serilog.Debugging.SelfLog.Enable(Console.Error);

Generally I find logging fails because I haven’t granted the correct permissions to Serilog for the specified sink.


Leave a Reply

Your email address will not be published. Required fields are marked *