diff options
author | mwithheld <796986+mwithheld@users.noreply.github.com> | 2021-08-24 23:00:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 23:00:27 +0300 |
commit | e817313a4ddd80d8a8854481bd09964588295ca6 (patch) | |
tree | c9801c7123a0b52b9cdeee0b102352d2d47be321 /plugins/Monolog | |
parent | 7a647c5aaf32cc75267d2a633b2ad82ee07f900e (diff) |
Use Monolog:SyslogHandler syslog default facility (#17855)
* Add log handlers syslog and errorlog
Issue#9400
* Add log handlers syslog and errorlog
* syslog/errorlog: fix namespace; add log.syslog.ident
* syslog/errorlog: Document options
* ErrorLogHandler constructor: Avoid null
Avoid null in ErrorLogHandler constructor call: Use level param; default others
* missing comma
* fix two di definitions
* Use Monolog constructor-default facility
Issue #17764
* #17855 SyslogHandler: Fix typo
* Update plugins/Monolog/config/config.php
Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Co-authored-by: root <root@127.0.0.1>
Diffstat (limited to 'plugins/Monolog')
-rw-r--r-- | plugins/Monolog/config/config.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Monolog/config/config.php b/plugins/Monolog/config/config.php index 7c73b4f044..6ee81f0796 100644 --- a/plugins/Monolog/config/config.php +++ b/plugins/Monolog/config/config.php @@ -104,8 +104,9 @@ return array( ->constructorParameter('level', DI\get('log.level.errorlog')) ->method('setFormatter', DI\get('log.lineMessageFormatter.file')), - '\Monolog\Handler\SyslogHandler' => DI\create() - ->constructor(DI\get('log.syslog.ident'), 'syslog', DI\get('log.level.syslog')) + '\Monolog\Handler\SyslogHandler' => DI\autowire() + ->constructorParameter('ident', DI\get('log.syslog.ident')) + ->constructorParameter('level', DI\get('log.level.syslog')) ->method('setFormatter', DI\get('log.lineMessageFormatter.file')), 'Piwik\Plugins\Monolog\Handler\DatabaseHandler' => DI\create() |