Configure jellyfin logging
This commit is contained in:
parent
11f0325367
commit
1f71663ecb
2 changed files with 27 additions and 0 deletions
|
@ -6,6 +6,12 @@
|
||||||
loop:
|
loop:
|
||||||
- jellyfin-cache
|
- jellyfin-cache
|
||||||
- jellyfin-config
|
- 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
|
- name: Run jellyfin
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
|
21
roles/jellyfin/templates/logging.json.j2
Normal file
21
roles/jellyfin/templates/logging.json.j2
Normal 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" ]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue