Click here to Skip to main content
15,664,081 members
Articles / Web Development / ASP.NET / ASP.NET Core

Stats

17K views
6 bookmarked

Logging with Serilog in ASP.NET Core Web API

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
17 Oct 2022CPOL6 min read
In this tutorial, we will learn how to implement logging with Serilog in ASP.NET Core Web API.
In this tutorial, we will learn how to implement logging with Serilog in ASP.NET Core Web API, we will be using the Serilog library to write logs into rolling files and see how can we inject the logging instance into different classes across the API Project to help us start writing logs. We will also learn how to write our own custom Sink.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Jordan Jordan
A passionate software developer with 12+ years of overall experience in various development languages including C#/vb.net, java. The technologies I mostly focus on are: ASP.NET Core, Android, Angular

I currently work as a Corporate Technical Manager in the Digital Solutions Team at Aramex International in Amman, Jordan.

Comments and Discussions