Skip to content

aimenux/SerilogWebApiDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET

SerilogWebApiDemo

Using Serilog to send logs to multiple sinks

In this repo, i m using serilog in order to enable logging in web api applications :

  • 2 configuration ways : code config based or json config based (one way is enabled at the same time)

  • 1 exception filter attribute in order to handle some specific domain exceptions as 400 bad requests

  • 4 telemetry processors to filter telemetries or to modify the sampling behaviour

  • 1 telemetry initializer to add extra information as custom properties

  • 4 sinks : console, file, application insights, udp

Tools : net 8.0, serilog

Releases

No releases published

Packages

No packages published

Languages