Redefines display so that non-error messages are filtered.
Redefines display so that non-error messages are filtered.
Problems are filtered out when they happen in a file that matches the regex in fileFilters
or when the content of the messages contain msgFilters
.
Problems that are filtered are not logged with the underlying logger but they are still
registered as problems so that users of problems()
receive them.
Defines a filtered reporter to control which messages are reported or not.
This reporter is meant to be used with a
ManagedLogger
, which will be set up. See ManagedLoggedReporter for a similar case.This implementation has been adapted from the Pants repository.