You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, to use UseSerilogRequestLogging you have to do services.AddSerilog()
I can't manage to get the custom logger provider to work. We tried using AddSerilog(this IServiceCollection collection, ILogger logger = null, bool dispose = false, LoggerProviderCollection providers = null) but it doesn't seem to work.
We used to do this:
However, to use
UseSerilogRequestLogging
you have to doservices.AddSerilog()
I can't manage to get the custom logger provider to work. We tried using
AddSerilog(this IServiceCollection collection, ILogger logger = null, bool dispose = false, LoggerProviderCollection providers = null)
but it doesn't seem to work.per https://github.com/serilog/serilog-aspnetcore/blob/680af2e3c6b16740366d6dc4a96d20cfa9ceab01/README.md?plain=1#L51
How can we add custom logger providers to the Serilog pipeline?
The text was updated successfully, but these errors were encountered: