From 475bfce71c643dca36e2c09e4aa64d31837d760d Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 7 Jun 2023 23:14:15 +0900 Subject: [PATCH] first setting working directory --- src/DotRecast.Recast.Demo/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Recast.Demo/Program.cs b/src/DotRecast.Recast.Demo/Program.cs index 32ca4d7..48a58db 100644 --- a/src/DotRecast.Recast.Demo/Program.cs +++ b/src/DotRecast.Recast.Demo/Program.cs @@ -10,8 +10,8 @@ public static class Program { public static void Main(string[] args) { - InitializeLogger(); InitializeWorkingDirectory(); + InitializeLogger(); StartDemo(); } @@ -27,8 +27,9 @@ public static class Program .WriteTo.Async(c => c.Console(outputTemplate: format)) .WriteTo.Async(c => c.File( "logs/log.log", - rollingInterval: RollingInterval.Day, + rollingInterval: RollingInterval.Hour, rollOnFileSizeLimit: true, + retainedFileCountLimit: null, outputTemplate: format) ) .CreateLogger();