forked from mirror/DotRecast
fix compile error
This commit is contained in:
parent
f54b586d75
commit
5911510544
|
@ -1,4 +1,5 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Threading;
|
||||||
using DotRecast.Core;
|
using DotRecast.Core;
|
||||||
using DotRecast.Recast.Demo.Logging.Sinks;
|
using DotRecast.Recast.Demo.Logging.Sinks;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
@ -10,6 +11,8 @@ public static class Program
|
||||||
{
|
{
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
Thread.CurrentThread.Name ??= "main";
|
||||||
|
|
||||||
InitializeWorkingDirectory();
|
InitializeWorkingDirectory();
|
||||||
InitializeLogger();
|
InitializeLogger();
|
||||||
StartDemo();
|
StartDemo();
|
||||||
|
@ -22,7 +25,6 @@ public static class Program
|
||||||
.MinimumLevel.Verbose()
|
.MinimumLevel.Verbose()
|
||||||
.Enrich.WithThreadId()
|
.Enrich.WithThreadId()
|
||||||
.Enrich.WithThreadName()
|
.Enrich.WithThreadName()
|
||||||
.Enrich.WithProperty(ThreadNameEnricher.ThreadNamePropertyName, "main")
|
|
||||||
.WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format))
|
.WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format))
|
||||||
.WriteTo.Async(c => c.Console(outputTemplate: format))
|
.WriteTo.Async(c => c.Console(outputTemplate: format))
|
||||||
.WriteTo.Async(c => c.File(
|
.WriteTo.Async(c => c.File(
|
||||||
|
|
Loading…
Reference in New Issue