Change the application name to lowercase when used in logging

This commit is contained in:
Namhyeon Go 2024-11-02 04:03:01 +09:00
parent 30c0e20eae
commit 412c72f624
2 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,6 @@ namespace WelsonJS.Service.Logging
{
Console.WriteLine(LogLevel.Warning.ToString() + ": [" + DateTime.Now.ToString() + "] Failed to write a log file. " + ex.Message);
}
}
}
}

View File

@ -74,7 +74,7 @@ namespace WelsonJS.Service
// set the logger
ILoggerFactory factory = LoggerFactory.Create(builder => builder.AddConsole());
factory.AddDirectory(Path.GetTempPath());
logger = factory.CreateLogger(applicationName);
logger = factory.CreateLogger(applicationName.ToLower());
// mapping arguments to each variables
var arguments = ParseArguments(this.args);