Skip to content

Commit

Permalink
Configure jellyfin logging
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed May 10, 2024
1 parent eeb760a commit 53de7d4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions roles/mediaserver/files/jellyfin.logging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter, Serilog.Formatting.Compact"
}
}
],
"Enrich": [
"FromLogContext",
"WithThreadId"
]
}
}
7 changes: 7 additions & 0 deletions roles/mediaserver/tasks/jellyfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@
xpath: /NetworkConfiguration/BaseUrl
value: "/jellyfin"
notify: Restart jellyfin

- name: Configure jellyfin logging
ansible.builtin.copy:
src: jellyfin.logging.json
dest: /data/state/jellyfin/config/logging.default.json
mode: 0600
notify: Restart jellyfin

0 comments on commit 53de7d4

Please sign in to comment.