Injecting services into Serilog filters, enrichers, and sinks

added by DotNetKicks
9/21/2020 12:39:16 AM

1137 Views

Hey! 👋 You might have missed a change that snuck quietly into Serilog.AspNetCore and Serilog.Extensions.Hosting just recently. It's now a lot easier to inject services from your dependency injection (DI) container into your Serilog pipeline. ASP.NET Core makes extensive use of dependency injection.


0 comments