forked from sim0n00ps/OF-DL
Fixed missing LogContext enrichment
This commit is contained in:
parent
67961ed80d
commit
03880fa1a0
@ -112,6 +112,7 @@ public class Program
|
||||
levelSwitch.MinimumLevel = LogEventLevel.Error; //set initial level (until we've read from config)
|
||||
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.Enrich.FromLogContext()
|
||||
.Enrich.WithProperty("Application", "OF_DL")
|
||||
.Enrich.WithProperty("StartTime", $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} ")
|
||||
.Enrich.WithProperty("MachineName", Environment.MachineName)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user