first setting working directory

This commit is contained in:
ikpil 2023-06-07 23:14:15 +09:00
parent acc1a17fa4
commit 475bfce71c
1 changed files with 3 additions and 2 deletions

View File

@ -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();