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

Redirect error logs to stderr #4

Open
praseodym opened this issue Sep 5, 2023 · 1 comment
Open

Redirect error logs to stderr #4

praseodym opened this issue Sep 5, 2023 · 1 comment

Comments

@praseodym
Copy link
Member

Errors get logged to /var/www/dokuwiki/data/log/error/YYYY-MM-DD.log without log rotation, which fills up the persistent volume. It would be better to redirect the logs to stderr, this makes the logs easier to find and doesn't fill up the disk.

@JoepdeJong
Copy link
Contributor

JoepdeJong commented Sep 7, 2023

I don't see how we can redirect the logs. This is how the logfile is defined in Dokuwiki:

https://github.com/dokuwiki/dokuwiki/blob/2c6bdf5eec8075a71fd937c32972491f139de86f/inc/Logger.php#L203C2-L219C6

Is overriding /inc/Logger.php an idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants