Configure jellyfin logging

This commit is contained in:
Ivan R. 2024-11-02 00:34:53 +05:00
parent 11f0325367
commit 1f71663ecb
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
2 changed files with 27 additions and 0 deletions

View file

@ -6,6 +6,12 @@
loop:
- jellyfin-cache
- jellyfin-config
- name: Copy logging config
become: true
ansible.builtin.template:
src: logging.json.j2
dest: /var/lib/docker/volumes/jellyfin-config/_data/config/logging.json
mode: "0644"
- name: Run jellyfin
become: true
community.docker.docker_container:

View file

@ -0,0 +1,21 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning",
"Jellyfin.Api.Controllers.UniversalAudioController": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
}
}
],
"Enrich": [ "FromLogContext", "WithThreadId" ]
}
}