Explorar o código

Update logging for async mode from #438

Joshua Boniface %!s(int64=6) %!d(string=hai) anos
pai
achega
4e8149bc86
Modificáronse 1 ficheiros con 14 adicións e 6 borrados
  1. 14 6
      debian/conf/logging.json

+ 14 - 6
debian/conf/logging.json

@@ -7,13 +7,21 @@
                     "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
                     "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
                 }
                 }
             },
             },
-            { "Name": "File",
+            {
+                "Name": "Async",
                 "Args": {
                 "Args": {
-                    "path": "%JELLYFIN_LOG_DIR%//jellyfin.log",
-                    "fileSizeLimitBytes": 10485700,
-                    "rollOnFileSizeLimit": true,
-                    "retainedFileCountLimit": 10,
-                    "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
+                    "configure": [
+                        {
+                            "Name": "File",
+                            "Args": {
+                                "path": "%JELLYFIN_LOG_DIR%//jellyfin.log",
+                                "fileSizeLimitBytes": 10485700,
+                                "rollOnFileSizeLimit": true,
+                                "retainedFileCountLimit": 10,
+                                "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}"
+                            }
+                        }
+                    ]
                 }
                 }
             }
             }
         ]
         ]