mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Enhance syslog logging
This commit is contained in:
parent
36329f9e7e
commit
2413627de9
4 changed files with 18 additions and 2 deletions
|
@ -119,7 +119,7 @@ class Logger
|
|||
|
||||
case 'syslog':
|
||||
try {
|
||||
$logger = new SyslogLogger($this->channel, $introspection, $loglevel);
|
||||
$logger = new SyslogLogger($this->channel, $introspection, $loglevel, $config->get('system', 'syslog_flags', SyslogLogger::DEFAULT_FLAGS), $config->get('system', 'syslog_facility', SyslogLogger::DEFAULT_FACILITY));
|
||||
} catch (LogLevelException $exception) {
|
||||
// If there's a wrong config value for loglevel, try again with standard
|
||||
$logger = $this->create($database, $config, $profiler, $fileSystem, LogLevel::NOTICE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue