mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Instance Name used for Syslog
This commit is contained in:
parent
1553a8f37b
commit
a5e54a6d6e
2 changed files with 6 additions and 2 deletions
|
@ -47,6 +47,7 @@ namespace NzbDrone.Core.Configuration
|
|||
string UpdateScriptPath { get; }
|
||||
string SyslogServer { get; }
|
||||
int SyslogPort { get; }
|
||||
string SyslogLevel { get; }
|
||||
}
|
||||
|
||||
public class ConfigFileProvider : IConfigFileProvider
|
||||
|
@ -216,6 +217,8 @@ namespace NzbDrone.Core.Configuration
|
|||
|
||||
public int SyslogPort => GetValueInt("SyslogPort", 514, persist: false);
|
||||
|
||||
public string SyslogLevel => GetValue("SyslogLevel", LogLevel, false).ToLowerInvariant();
|
||||
|
||||
public int GetValueInt(string key, int defaultValue, bool persist = true)
|
||||
{
|
||||
return Convert.ToInt32(GetValue(key, defaultValue, persist));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue