Setting up Serilog in ASP.NET Core [Article]

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
28,059
Reaction score
17,821
This article will cover what is Serilog along with its concepts and how to implement Serilog in ASP.NET Core. ASP.NET Core has a built-in logging API that supports a wide variety of logging providers. Serilog is one of the most popular logging frameworks which can be plugged-in into .NET Core based applications. This Serilog guide covers the detailed implementation of logging with Serilog in ASP.NET Core.

Logging providers works by storing logs in some destination like file or database. In-built logging API is available in Microsoft.Extensions.Logging namespace and works mostly all in-built and third-party logging providers.

Serilog provides libraries for logging application information into the console, files, etc. Serilog supports structured logging which is a very popular format when it comes to reading these log information using some tool.

Full Article

 
Just want to share this as I found it quite helpful and easy to implement. Took about 5 mins to get Exception logging up and running.
 
Top
Sign up to the MyBroadband newsletter
X