Added back the log path writing #865

pull/1551/head
Jamie.Rees 7 years ago
parent 9bcced3cac
commit 6cc2afc92f

@ -55,6 +55,8 @@ namespace Ombi
{ {
config = new LoggerConfiguration() config = new LoggerConfiguration()
.MinimumLevel.Debug() .MinimumLevel.Debug()
.WriteTo.RollingFile(Path.Combine(env.ContentRootPath, "Logs", "log-{Date}.txt"))
.WriteTo.SQLite("Ombi.db", "Logs", LogEventLevel.Debug) .WriteTo.SQLite("Ombi.db", "Logs", LogEventLevel.Debug)
.CreateLogger(); .CreateLogger();
} }
@ -62,6 +64,8 @@ namespace Ombi
{ {
config = new LoggerConfiguration() config = new LoggerConfiguration()
.MinimumLevel.Debug() .MinimumLevel.Debug()
.WriteTo.RollingFile(Path.Combine(StoragePath.StoragePath, "Logs", "log-{Date}.txt"))
.WriteTo.SQLite(Path.Combine(StoragePath.StoragePath, "Ombi.db"), "Logs", LogEventLevel.Debug) .WriteTo.SQLite(Path.Combine(StoragePath.StoragePath, "Ombi.db"), "Logs", LogEventLevel.Debug)
.CreateLogger(); .CreateLogger();
} }

Loading…
Cancel
Save