xoxys.jellyfin/templates/opt/jellyfin/config/logging.json.j2

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2019-02-01 21:02:36 +00:00
{
"Serilog": {
2021-04-18 15:48:02 +00:00
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
2019-02-01 21:02:36 +00:00
"WriteTo": [
{
"Name": "Console",
"Args": {
2021-04-18 15:48:02 +00:00
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}",
2019-02-02 02:27:11 +00:00
"restrictedToMinimumLevel": "{{ jellyfin_log_level_console }}"
2019-02-01 21:02:36 +00:00
}
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"path": "{{ jellyfin_log_dir }}/jellyfin.log",
2019-02-02 02:37:09 +00:00
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}",
2021-04-18 15:48:02 +00:00
"restrictedToMinimumLevel": "{{ jellyfin_log_level_file }}",
"rollingInterval": "Day",
"retainedFileCountLimit": 3,
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 100000000,
2019-02-01 21:02:36 +00:00
}
}
]
}
}
2021-04-18 15:48:02 +00:00
],
"Enrich": [ "FromLogContext", "WithThreadId" ]
2019-02-01 21:02:36 +00:00
}
}