chore: adjust log directory

This commit is contained in:
Timothy Schenk 2023-11-16 18:49:43 +01:00
parent 58f4448438
commit 55276354db

View file

@ -19,8 +19,8 @@ builder.Configuration.AddJsonFile("settings.json", true, true)
builder.Services.AddLogging(); builder.Services.AddLogging();
var loggerFactory = LoggerFactory.Create(loggingBuilder => var loggerFactory = LoggerFactory.Create(loggingBuilder =>
{ {
loggingBuilder.AddFile("Logs/Server-{Date}.log", LogLevel.Trace); loggingBuilder.AddFile("logs/Server-{Date}.log", LogLevel.Trace);
loggingBuilder.AddFile("Logs/Server-{Date}.json.log", LogLevel.Trace, isJson: true); loggingBuilder.AddFile("logs/Server-{Date}.json.log", LogLevel.Trace, isJson: true);
loggingBuilder.AddConsole(); loggingBuilder.AddConsole();
}); });
builder.Services.AddDbContextPool<WonderkingContext>(o => builder.Services.AddDbContextPool<WonderkingContext>(o =>