-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
We used to do this:
// Configure logging providers
builder.Logging.ClearProviders();
builder.Logging.AddSerilog();
builder.Logging.AddCustomLoggerProvider();
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.
The
builder.Services.AddSerilog()
call will redirect all log events through your Serilog pipeline.
How can we add custom logger providers to the Serilog pipeline?
Metadata
Metadata
Assignees
Labels
No labels