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

Adding a max_size on the log file #4

Open
anouvel opened this issue Jun 16, 2016 · 0 comments
Open

Adding a max_size on the log file #4

anouvel opened this issue Jun 16, 2016 · 0 comments
Assignees

Comments

@anouvel
Copy link

anouvel commented Jun 16, 2016

Define somewhere a maximum size for the log file.
Before each new instance of the logger, it will check if the file is not bigger than the size, if yes, delete it.

To not force delete the file, the old file is moved with a timestamp :

out.log > out_<epoch>.log

The user should delete this file if he wants.

@anouvel anouvel self-assigned this Jun 16, 2016
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

1 participant