Browse Source

Merge pull request #2071 from excelite/add_default_values_to_logconfig

add filesize limit for logfiles and a maximum logfile count

(cherry picked from commit 8f56baf6d9647b67598b9eabd41ca9583affe404)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
Vasily 5 years ago
parent
commit
0dd08bbbb4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Jellyfin.Server/Resources/Configuration/logging.json

+ 3 - 0
Jellyfin.Server/Resources/Configuration/logging.json

@@ -17,6 +17,9 @@
                             "Args": {
                                 "path": "%JELLYFIN_LOG_DIR%//log_.log",
                                 "rollingInterval": "Day",
+                                "retainedFileCountLimit": 3,
+                                "rollOnFileSizeLimit": true,
+                                "fileSizeLimitBytes": 100000000,
                                 "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
                             }
                         }