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

Allow setting a file size limit #2

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Allow setting a file size limit #2

merged 1 commit into from
Dec 9, 2023

Conversation

LyubomirT
Copy link
Contributor

This pull request gives users the ability to set a file size limit for the logger (if using a log file). Now there is a max_file_size parameter available to set when initializing the LogNode class, along with the self.maxinf variable. Also modified the log function so it'll remove the first line if a new line is about to be added.

Copy link
Owner

@Kokonico Kokonico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR!

I'll approve it shortly.

@Kokonico Kokonico merged commit 2a67e3a into Kokonico:master Dec 9, 2023
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

Successfully merging this pull request may close these issues.

2 participants