Skip to content

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