feat: add logging for plugin
Regaez opened this issue · 0 comments
Regaez commented
We should add a new configuration option that enables logging for all the API activity. The logs could be stored in /logs/api.log
.
We should first investigate using the built-in $grav['log']
logger, but if that mixes the API logs with the other general Grav logs, then it might get confusing. At the very least, we should add in some identifier so that when reading the logs you know it was emitted by our plugin.
If the default Grav logger is not desirable, we could create a custom Monolog logger, like grav-plugin-email
does.