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