forked from bit/DotRecastNetSim
async log
This commit is contained in:
parent
6eb503c287
commit
e5d7cca6c6
|
@ -25,13 +25,14 @@ public static class Program
|
||||||
.Enrich.WithThreadId()
|
.Enrich.WithThreadId()
|
||||||
.Enrich.WithThreadName()
|
.Enrich.WithThreadName()
|
||||||
.Enrich.WithProperty(ThreadNameEnricher.ThreadNamePropertyName, "main")
|
.Enrich.WithProperty(ThreadNameEnricher.ThreadNamePropertyName, "main")
|
||||||
.WriteTo.LogMessageBroker(outputTemplate: format)
|
.WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format))
|
||||||
.WriteTo.Console(outputTemplate: format)
|
.WriteTo.Async(c => c.Console(outputTemplate: format))
|
||||||
.WriteTo.File(
|
.WriteTo.Async(c => c.File(
|
||||||
"logs/log.log",
|
"logs/log.log",
|
||||||
rollingInterval: RollingInterval.Day,
|
rollingInterval: RollingInterval.Day,
|
||||||
rollOnFileSizeLimit: true,
|
rollOnFileSizeLimit: true,
|
||||||
outputTemplate: format)
|
outputTemplate: format)
|
||||||
|
)
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
|
||||||
Run();
|
Run();
|
||||||
|
|
Loading…
Reference in New Issue