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

GH-314: New setting to configure global capture level #324

Merged

Conversation

youribonnaffe
Copy link

Introduce a new global setting capture.level to disable storing (and printing) logs at a given level (following the level hierarchy).

The implementation is very similar to the print.level global setting.

This is useful when tests are generating a lot of logging events that are not of interest and don't need to be captured. ArchUnit tests are known to be such tests and can be quite slow when slf4j-test is used.

Introduce a new global setting `capture.level` to disable storing (and
printing) logs at a given level (following the level hierarchy).

The implementation is very similar to the `print.level` global setting.

This is useful when tests are generating a lot of logging events that
are not of interest and don't need to be captured. ArchUnit tests are
known to be such tests and can be quite slow when slf4j-test is used.
@codeclimate
Copy link

codeclimate bot commented Dec 10, 2022

Code Climate has analyzed commit 91e500e and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@valfirst valfirst merged commit de3bfb9 into valfirst:master Dec 11, 2022
@valfirst
Copy link
Owner

@youribonnaffe thank you!

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.

Provide a mechanism to limit default behaviour of capturing all logging
2 participants