aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Resources
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-05 23:08:22 +0100
committerBond_009 <bond.009@outlook.com>2019-01-05 23:08:22 +0100
commit7af3754a11ad5a4284f107997fb5419a010ce6f3 (patch)
tree9218da102eae2c6eda518303e0b6b840780479ec /Jellyfin.Server/Resources
parentf57ad728a50cbee0b4232a5a94cd23a1717ade6f (diff)
Improve logging performance
Perform logging to file on a background thread. This means logging won't be bottlenecked by IO.
Diffstat (limited to 'Jellyfin.Server/Resources')
-rw-r--r--Jellyfin.Server/Resources/Configuration/logging.json19
1 files changed, 14 insertions, 5 deletions
diff --git a/Jellyfin.Server/Resources/Configuration/logging.json b/Jellyfin.Server/Resources/Configuration/logging.json
index 78f99b2ad..d16991277 100644
--- a/Jellyfin.Server/Resources/Configuration/logging.json
+++ b/Jellyfin.Server/Resources/Configuration/logging.json
@@ -2,16 +2,25 @@
"Serilog": {
"MinimumLevel": "Information",
"WriteTo": [
- { "Name": "Console",
+ {
+ "Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
}
},
- { "Name": "File",
+ {
+ "Name": "Async",
"Args": {
- "path": "%JELLYFIN_LOG_DIR%//log_.log",
- "rollingInterval": "Day",
- "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
+ "configure": [
+ {
+ "Name": "File",
+ "Args": {
+ "path": "%JELLYFIN_LOG_DIR%//log_.log",
+ "rollingInterval": "Day",
+ "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
+ }
+ }
+ ]
}
}
]