Search code examples
c#asp.net-coreserilog

Serilog not printing Trace.WriteLine


We spotted a little issue with Serilog for c# - it's not printing anything that comes from Trace.WriteLine, even if the minimum log level is set to Verbose.

Project setup: .NET Core 2.2, Serilog.AspNetCore 3.2.0

Any ideas?


Solution

  • Actually I found the solution. You need to add TraceListener https://github.com/serilog-trace-listener/SerilogTraceListener.