Browse Source

added filesize limit for logfiles and a maximum logfile count

excelite 5 years ago
parent
commit
60691349a1
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": {
                             "Args": {
                                 "path": "%JELLYFIN_LOG_DIR%//log_.log",
                                 "path": "%JELLYFIN_LOG_DIR%//log_.log",
                                 "rollingInterval": "Day",
                                 "rollingInterval": "Day",
+                                "retainedFileCountLimit": 3,
+                                "rollOnFileSizeLimit": true,
+                                "fileSizeLimitBytes": 100000000,
                                 "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
                                 "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
                             }
                             }
                         }
                         }