Top "Serilog" questions

Serilog is a .NET library which provides diagnostic logging to files, the console, and so-on.

Multiple filters for one logger with Serilog

I am trying to setup Serilog with my ASP.NET Core application. I'd like to have one log file for …

c# logging serilog
Overriding MinimumLevel doesn't work in Serilog

Trying to set minimum log level for Serilog 2.8.0 (in .NET 4.6.2). Logging is working fine, but not the Override feature. Here …

c# logging overriding serilog log-level
Serilog in Windows-Service not writing to logfile

I am using Serilog within an TopShelf Service, logging to the console and a rolling file. When running the service …

windows-services topshelf serilog
Serilog not working from configuration in asp.net core 2.2 API

public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => …

c# asp.net-core serilog
Why isn't Serilog writing Debug messages even when the level is set to Debug?

I wrote the following line to create my logger in a C#/WPF application, but the Debug messages do not …

c# wpf serilog
Serilog with Autofac

I have a logger wrapper and I wanna inject serilog to it with following configurtion perse: var logger = new LoggerConfiguration() .…

c# autofac serilog
How to output event source Class Name in serilog RollingFile outputTemplate?

The RollingFile.outputTemplate that I am using for my sink in <appSettings> configuration is as below: <add …

serilog
Serilog is not writing log to Seq until Log.CloseAndFlush() is invoked

Serilog and Seq works fine when I log from WinForm/web application. I am facing problem only when I am …

serilog seq-logging getseq
Add Username into Serilog

I have this Serilog configuration in program.cs public class Program { public static IConfiguration Configuration { get; } = new ConfigurationBuilder() .SetBasePath(Directory.…

c# asp.net-core logging serilog
How to force Serilog to log only my custom log messages

I configured Serilog in appsettings.json to log entries into Logstash via tcp in my asp net core web api …

c# asp.net-core serilog