mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #343 from Bond-009/patch-1
Fix location log dir when failed to read configuration
This commit is contained in:
commit
67cfd43c67
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user