Note: We are moving the topics of this forum and it will be deleted at some point
Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Currently we use a logger which i completely bound to phpBB, which leads to a few issue:
It's completely incompatible with third party
It's not really extensible
but it also has some nice features like:
the ability to filter the log
the ability to give limited access to the logs depending on the acl system.
there is also some other feature that, I think, shouldn't exists like:
The ability to delete all or part of the logs, I think that it should be done by a cron job and nothing else (ie: just automatic purge) or at least with a special admin permission
Proposal
Our logger must be PSR3 compatible
Use an interface to be able to change the logger
Use Monolog if available and backport the Symfony Monolog Bridge and Bundle (their integration is pretty good: they use Monolog and its features if available, but their still able to use any logger which implements their interface without having to change anything else than the definition of the logger service)
Use a custom handler to store some entries (or all of them I don't know?) in the database (mainly what is currently logged) and so keep our abilities to display and filter the logs
Improve the current UI to add the severity
Write all the logs in a file and rotate them (ie: one file per day) by default, they will be written in the board default language
Use the DI and a config file (DI extension) to manage all the configuration, so the board admin will be completely able to configure the logging
Add a viewer for the log files in the acp?
Member of the phpBB Development-Team No Support via PM
We're also interested in this feature. Currently our extensions add entries to the log, but displaying the data back is difficult without events being triggered to alter the display row.
Ideally there would be a mechanism for extensions to define new log types and attach handlers for displaying/managing them.