Skip to content

Add a simple FileAppender type to log into a file without rotation. #7

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

prx0
Copy link

@prx0 prx0 commented Feb 22, 2023

Add a NoRollingCondition that implements the RollingCondition trait in order to never rollover.
The goal is to provide a FileAppender type to log into a file without rotation behavior.

The Context struct in testing submodule is now generic, this allows to write tests for anything that implements RollingCondition trait.

Thank you for reading.

Maximilien DI DIO and others added 2 commits February 22, 2023 19:29
Add a NoRollingCondition that implements the RollingCondition trait in
order to never rollover.
The goal is to provide a FileAppender type to log into a file without
rotation behavior.
Now the struct who implement the RollingCondition trait have to know the
maximum number of files autorized before rolling.

Deprecation: Now the RollingFileAppender does not need to receive the
max_files value as parameter because this value is provided by the
condition.
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.

1 participant