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

New feature: log rotation #9

Open
cann3v opened this issue Mar 27, 2023 · 0 comments
Open

New feature: log rotation #9

cann3v opened this issue Mar 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cann3v
Copy link
Contributor

cann3v commented Mar 27, 2023

It would be cool to add log rotation feature. In some cases, when log files become too large (or irrelevant), they need to be compressed/moved/deleted/something else.
So you can add some optional arguments to logger::init, for example:

  • logger::init(logger::debug, logger::cout, "500 MB") for rotation big files;
  • logger::init(logger::debug, logger::cout, "12:00") for rotation every noon;
  • logger::init(logger::debug, logger::cout, "10 days") for retention old files;
  • logger::init(logger::debug, logger::cout, "zip") for compression.
@temikfart temikfart added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants