Category "serilog"

Polly -how do I log final error and continue?

I'm trying to set up Polly in .Net Core 3.1 (Azure Functions v3). I want to create a Policy in the Startup class which I can inject into functions. The beha

Use Serilog with Microsoft.Extensions.Logging.ILogger

I've created a .NET Core 3.1 project using a Host, the IoC container with IServiceCollection and implemented logging allover the place using the ILogger<T>

.Net Core 3.1 - Set ForContext for Serilog with Microsoft Ilogger interface

How to dynamically set ForContext property for Serilog logger using Ilogger interface from Microsoft.Extensions.Logging? Here's the code: private readonly ILogg

How to implement Serilog Custom Sink outputTemplate parameter

How do I implement outputTemplate that is common to most sinks? For example this works: Logger = new LoggerConfigruration() .WriteTo.Console(outputTemplate:

Serilog set flush interval

I'm using serilog in my ASP Core 2.2 application. Everything works great but I can't set flushToDiskInterval. It means that I want to flush logs to disk every m