aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Resources
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-01-13 19:44:17 +0100
committerBond-009 <bond.009@outlook.com>2020-01-13 19:44:17 +0100
commit65fe243afbcc4b596cf8726708c1965cd34b5f68 (patch)
tree72cddbf5281b77b6db453e9df0d6075f20903927 /Jellyfin.Server/Resources
parent138bff43270279f46358c39cc03666fb3ee331b2 (diff)
Add thread ID and source to logging
Diffstat (limited to 'Jellyfin.Server/Resources')
-rw-r--r--Jellyfin.Server/Resources/Configuration/logging.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/Jellyfin.Server/Resources/Configuration/logging.json b/Jellyfin.Server/Resources/Configuration/logging.json
index e85ef05af..6bc2ed2ee 100644
--- a/Jellyfin.Server/Resources/Configuration/logging.json
+++ b/Jellyfin.Server/Resources/Configuration/logging.json
@@ -5,7 +5,7 @@
{
"Name": "Console",
"Args": {
- "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}"
+ "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {ThreadId} {SourceContext}: {Message:lj} {NewLine}{Exception}"
}
},
{
@@ -20,12 +20,13 @@
"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}] {ThreadId} {SourceContext}:{Message} {NewLine}{Exception}"
}
}
]
}
}
- ]
+ ],
+ "Enrich": [ "FromLogContext", "WithThreadId" ]
}
}