mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Change the application name to lowercase when used in logging
This commit is contained in:
parent
30c0e20eae
commit
412c72f624
|
@ -55,7 +55,6 @@ namespace WelsonJS.Service.Logging
|
|||
{
|
||||
Console.WriteLine(LogLevel.Warning.ToString() + ": [" + DateTime.Now.ToString() + "] Failed to write a log file. " + ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user