add options to adjust log verbosity
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-02 03:27:11 +01:00
parent 821b2fb9d5
commit 9aeab21114
2 changed files with 9 additions and 5 deletions

View File

@ -40,6 +40,11 @@ jellyfin_logrotate_config:
- compress - compress
- shred - shred
# Possible: Verbose | Debug | Information | Warning | Error | Fatal
# Beware that the values are case sensitive!
jellyfin_log_level_console: Fatal
jellyfin_log_level_file: Information
jellyfin_base_url: https://mystream.example.com jellyfin_base_url: https://mystream.example.com
# DONT CHANGE IT! # DONT CHANGE IT!
# Changing the bind ports is currently not supported # Changing the bind ports is currently not supported

View File

@ -5,7 +5,8 @@
{ {
"Name": "Console", "Name": "Console",
"Args": { "Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u5}] {Message:lj}{NewLine}{Exception}" "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u5}] {Message:lj}{NewLine}{Exception}",
"restrictedToMinimumLevel": "{{ jellyfin_log_level_console }}"
} }
}, },
{ {
@ -16,10 +17,8 @@
"Name": "File", "Name": "File",
"Args": { "Args": {
"path": "{{ jellyfin_log_dir }}/jellyfin.log", "path": "{{ jellyfin_log_dir }}/jellyfin.log",
"fileSizeLimitBytes": 10485700, "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u4}] {Message}{NewLine}{Exception}",
"rollOnFileSizeLimit": true, "restrictedToMinimumLevel": "{{ jellyfin_log_level_file }}"
"retainedFileCountLimit": 10,
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u4}] {Message}{NewLine}{Exception}"
} }
} }
] ]