Skip to content

Instantly share code, notes, and snippets.

View afluegge's full-sized avatar
🤠
Doing well...

Andreas Flügge afluegge

🤠
Doing well...
  • Germany
  • 10:26 (UTC +01:00)
View GitHub Profile
@gcollic
gcollic / SerilogLinqpad.cs
Last active May 17, 2018 15:25
Trying Serilog in LinqPad ( gist version of https://twitter.com/adamchester/status/726965534693056513 )
void Main()
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Warning()
.Enrich.FromLogContext()
.Enrich.WithProperty("url", "http://serilog.net/")
.WriteTo.Sink(new LinqpadDumpSink())
.CreateLogger();
Log.Warning(
"Processing inside {@test}, something weird happened",