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"); var logPath = _paths.LogDirectory.File($"trash_{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.log");
return new LoggerConfiguration() return new LoggerConfiguration()
.MinimumLevel.Is(level) .MinimumLevel.Is(LogEventLevel.Debug)
.WriteTo.Console(outputTemplate: ConsoleTemplate) .WriteTo.Console(outputTemplate: ConsoleTemplate, restrictedToMinimumLevel: level)
.WriteTo.File(logPath.FullName) .WriteTo.File(logPath.FullName)
.CreateLogger(); .CreateLogger();
} }

Loading…
Cancel
Save