Skip to content

aimenux/SerilogSinksDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET

SerilogSinksDemo

Using Serilog to send logs to various sinks

In this repo, i m using serilog in order to enable logging to various sinks in console applications :

  • 2 configuration ways : code config based or json config based (chosen randomly at startup)

  • 5 sinks : console, file, udp, seq, appinsights

For Seq:

  • run docker command : docker run -e "ACCEPT_EULA=Y" -p 5341:80 --name=SEQ -d datalust/seq:latest
  • navigate to http://localhost:5341 to see logs

SerilogSinksDemo

Tools : net 8.0, serilog

Releases

No releases published

Packages

No packages published

Languages