aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Resources
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-01 18:41:02 +0100
committerVasily <JustAMan@users.noreply.github.com>2019-01-02 02:30:59 +0300
commita44936f97f8afc2817d3491615a7cfe1e31c251c (patch)
treec7a621ff4a04cf3a7d471bc2c8df22a4681f1266 /Jellyfin.Server/Resources
parent75efe9cf0a15b6871726a4c2e8802e2af88cf1d1 (diff)
Fix and improve logging
Diffstat (limited to 'Jellyfin.Server/Resources')
-rw-r--r--Jellyfin.Server/Resources/Configuration/logging.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/Jellyfin.Server/Resources/Configuration/logging.json b/Jellyfin.Server/Resources/Configuration/logging.json
new file mode 100644
index 000000000..78f99b2ad
--- /dev/null
+++ b/Jellyfin.Server/Resources/Configuration/logging.json
@@ -0,0 +1,19 @@
+{
+ "Serilog": {
+ "MinimumLevel": "Information",
+ "WriteTo": [
+ { "Name": "Console",
+ "Args": {
+ "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
+ }
+ },
+ { "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}"
+ }
+ }
+ ]
+ }
+}