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
- 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
# DONT CHANGE IT!
# Changing the bind ports is currently not supported

View File

@ -5,7 +5,8 @@
{
"Name": "Console",
"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",
"Args": {
"path": "{{ jellyfin_log_dir }}/jellyfin.log",
"fileSizeLimitBytes": 10485700,
"rollOnFileSizeLimit": true,
"retainedFileCountLimit": 10,
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u4}] {Message}{NewLine}{Exception}"
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u4}] {Message}{NewLine}{Exception}",
"restrictedToMinimumLevel": "{{ jellyfin_log_level_file }}"
}
}
]