SeriLog Examples with different type of projects like .Net8 Console App, Web APIs (including minimal api), with NetFrameWork Standard
This project is an example of how to use SeriLog in .Net7 Console App.
- How to separate the logs based on either log level or properties.
- How to read appsettings.json config file for SeriLog
- How to use different type of sinks
- How to use log template with different sinks
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Visual Studio 2022 or later
- .NET 8.0 or later
- Serilog.Extensions.Logging
- Serilog.Expressions
- Serilog.Settings.Configuration
- Serilog.Enrichers.Context
- Serilog.Enrichers.Environment
- Serilog.Enrichers.Process
- Serilog.Enrichers.Thread
- Serilog.Sinks.File
- Serilog.Sinks.MSSqlServer
- Serilog.Sinks.Seq
- Serilog.Sinks.EventLog
- Serilog.Sinks.Email
- Serilog.Sinks.EmailPickup
- Clone the repository.
- Open the solution in Visual Studio.
- Build the solution.
- Run the application.
- Visual Studio 2022
- .NET 8.0
- Console App Project template
- SeriLog.Extensions.Logging
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Kudos to SeriLog team