fix: Log files did not have debug level logs

gui
Robert Dailey 3 years ago
parent d096287aed
commit fdd95a619f

@ -21,8 +21,8 @@ internal class LoggerFactory
var logPath = _paths.LogDirectory.File($"trash_{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.log");
return new LoggerConfiguration()
.MinimumLevel.Is(level)
.WriteTo.Console(outputTemplate: ConsoleTemplate)
.MinimumLevel.Is(LogEventLevel.Debug)
.WriteTo.Console(outputTemplate: ConsoleTemplate, restrictedToMinimumLevel: level)
.WriteTo.File(logPath.FullName)
.CreateLogger();
}

Loading…
Cancel
Save