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

Ability to use it with logrotate #10

Closed
codercms opened this issue Dec 7, 2017 · 3 comments
Closed

Ability to use it with logrotate #10

codercms opened this issue Dec 7, 2017 · 3 comments

Comments

@codercms
Copy link

codercms commented Dec 7, 2017

Hello! It would be a greateful if you will add option to the config file that allow to write logs into single file.
https://linux.die.net/man/8/logrotate

@mnabialek
Copy link
Owner

Do you mean creating file in any format you want? For example you can set it to sql.log or sql-%Y-%m-%d.log? I considered something like this already. I hope I will be able to add this soon

@codercms
Copy link
Author

Yes, it's exactly what i mean. Thanks :)

@mnabialek
Copy link
Owner

@codercms You can now set custom format of log files in 2.0 release by setting custom value for SQL_LOGGER_ALL_QUERIES_FILE_NAME and SQL_LOGGER_SLOW_QUERIES_FILE_NAME env variables

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

2 participants