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 #9400
Comments
👍 I was waiting for that since I started working with Piwik and am surprised that it is still not there 👍 👍 👍 definitely needed for a proper logging setup |
@Vebryn Thanks for the suggestion, a pull request would be very welcome :-) |
+1 on this please Ref https://stackoverflow.com/questions/28591433/laravel-monolog-syslog-specify-individual-log-file for another example. I can code up a pull request, but I'm not familiar with Matomo code -- can someone point me at where the SyslogHandler should be added, or analogous code for the DB/file logging setup? |
Hi @mwithheld, a pull request would be appreciated, though technically this should be possible currently via dependency injection. You could add the handler by adding the following to the
If you want to create a PR that allows setting it via INI config, you'd have to add an entry to |
Fixed in #17764 |
Hello,
log_writers currently supports screen, database and file.
syslog allows more flexibility in log management. Unix and Linux based distributions manage system logs and applications logs with rsyslog or syslog-ng component. Rsyslog manages and stores logs. It enhances security by centraling log management.
Pros :
Is it possible to add syslog log_writer ?
Configuration implementation example :
[log]
log_writers[] = syslog
Code implementation example :
http://php.net/manual/fr/function.syslog.php
Thank you,
Best regards.
The text was updated successfully, but these errors were encountered: