Top "Serilog" questions

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

How to log complex object using Serilog in valid json format?

I have this structure: public class LogRequestParameters { public string RequestID { get; set; } public string Type { get; set; } public string Level { …

c# json serilog structured-data
Filter Serilog logs to different sinks depending on context source?

I have a .NET Core 2.0 application in which I successfully use Serilog for logging. Now, I would like to log …

c# logging asp.net-core .net-core serilog
How to get Microsoft.Extensions.Logging<T> in console application using Serilog and AutoFac?

We have common BL classes in a ASP.NET Core application that get in the ctor: Microsoft.Extensions.Logging.ILogger&…

c# dependency-injection asp.net-core autofac serilog
How do I interpret Serilog configuration in ASP.NET Core 2.1?

For some reason, I find it very hard to understand what's going on with Serilog configuration. I have a web …

c# asp.net-core serilog
Map ILogger to Serilog's Logger after ASP.NET Core 2 logging update

From @nblumhardt's post: You can then go ahead and delete any other logger configuration that’s hanging around: there’s …

c# asp.net-core serilog
Serilog - Output/Enrich All Messages with MethodName from which log entry was Called

Is there anyway to enrich all Serilog output with the Method Name. For Instance consider If I have the following; …

vb.net serilog
Which Serilog sink to use for sending to Logstash?

We started using Serilog in combination with Elasticsearch, and it's a very efficient way to store structure log data (and …

logging elasticsearch logstash serilog
Add custom properties to Serilog

I'm using Serilog with an MS SQL Server sink in my application. Let's assume I have defined the following class ... …

c# serilog
Serilog - multiple log files

I am using Serilog for logging and cant' figure out how to separate log events to different files. For example, …

c# logging serilog
How to use Serilog in .NET Core Console app

I wanted my application to have capability of logging to a file, so I started to look for something more …

c# logging .net-core serilog