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

Enable Log file max size and log file rotation #39

Open
wuuti opened this issue Jan 21, 2015 · 5 comments
Open

Enable Log file max size and log file rotation #39

wuuti opened this issue Jan 21, 2015 · 5 comments

Comments

@wuuti
Copy link

wuuti commented Jan 21, 2015

Currently the error.log keeps growing until eternity. This makes it useless somehow (the manager UI was pimped because auf this to allow only downloading from a certain size on - ugly IMHO).
I would like to have both a max log file size setting and the possibility to either truncate the log file or to archive older logs (and zip them).
This way even old logs would still be availabe (for research e.g. in case of hacking attacks), but the most recent log entries could still be shown in the manager reports.

@JensWolff
Copy link

@pixelfanatiker, @gerrit1986, @pepebe and @JensWolff are working on that

@gerrit1986
Copy link

ok

@gerrit1986
Copy link

error.log shouldn't be in a cache subfolder

@gerrit1986
Copy link

We could write a custom error handler as a replacement for modErrorHandler, hook it into the process by configuration and then use the custom handler as a proposal for a core enhancement: http://forums.modx.com/thread/29142/error-handling-and-error-logging-in-php-code-in-modx-revolution#dis-post-157488

@gerrit1986
Copy link

summary: created system setting for error_log's path, defaults to /logs, which is used by the logging. creating pull request for this.

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

No branches or pull requests

4 participants