aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2018-12-31 11:27:27 -0500
committerGitHub <noreply@github.com>2018-12-31 11:27:27 -0500
commit67cfd43c67405000b042da291e342242285080c8 (patch)
tree45c76474efae5c98cbb9b324721e8095407b72b3
parentb27ad9af0b78c7d528687250ba353d56b88cc33f (diff)
parent7d0ae2bca2a50518d8b3eacae8dac5fd9856f781 (diff)
Merge pull request #343 from Bond-009/patch-1
Fix location log dir when failed to read configuration
-rw-r--r--MediaBrowser.Server.Mono/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs
index b8c29796d..f512fc98e 100644
--- a/MediaBrowser.Server.Mono/Program.cs
+++ b/MediaBrowser.Server.Mono/Program.cs
@@ -193,7 +193,7 @@ namespace MediaBrowser.Server.Mono
Serilog.Log.Logger = new LoggerConfiguration()
.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}")
.WriteTo.File(
- Path.Combine(logDir, "logs", "log_.log"),
+ Path.Combine(logDir, "log_.log"),
rollingInterval: RollingInterval.Day,
outputTemplate: "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}")
.Enrich.FromLogContext()