New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matomo application logs can now be written in syslog and errorlog #17745
Conversation
Issue#9400
Hi @mwithheld, thanks for the contribution! Greatly appreciated. |
This reverts commit 288c07e.
Hi @mwithheld, sorry I just merged this then realized it won't work as is. I've left some review comments. Can you create a new PR w/ the changes? |
@@ -17,6 +17,8 @@ | |||
'file' => 'Piwik\Plugins\Monolog\Handler\FileHandler', | |||
'screen' => 'Piwik\Plugins\Monolog\Handler\WebNotificationHandler', | |||
'database' => 'Piwik\Plugins\Monolog\Handler\DatabaseHandler', | |||
'syslog' => 'Piwik\Plugins\Monolog\Handler\SyslogHandler', | |||
'errorlog' => 'Piwik\Plugins\Monolog\Handler\ErrorLogHandler', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These classes don't exist, they need to match the actual monolog classes, for example, \Monolog\Handler\ErrorLogHandler::class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same applies for the references below.
That was silly of me - a fix is in PR #17746 along with adding the option to set the syslog ident. Testing syslog:
Output in syslog looks like this (will vary depending on your syslog config)
Testing errorlog:
Output in errorlog looks like very similar to the above, depending on your config (without the syslog ident tag). |
Issue #9400
Description:
Add log handlers syslog and errorlog
Review