Skip to content
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

feat: add logging for plugin #94

Open
Regaez opened this issue May 20, 2020 · 0 comments
Open

feat: add logging for plugin #94

Regaez opened this issue May 20, 2020 · 0 comments
Labels

Comments

@Regaez
Copy link
Owner

Regaez commented May 20, 2020

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.

Grav creates its own logger in a similar way.

@Regaez Regaez added the feature label May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant