PatternFilter¶
Logging Filter based on pattern.
- class DIRAC.Resources.LogFilters.PatternFilter.PatternFilter(optionDict)¶
Bases:
object
Filter module to set loglevel per module.
Resources { LogBackends { <backend> { Filter = MyPatternFilter } } LogFilters { MyPatternFilter { Plugin = PatternFilter Accept = Some, Words, To, Match Reject = Foo, Bar, Baz, DEBUG } } }
Only print log lines matching words in Accept and reject lines which contains words in Reject. A line must both be accepted and not rejected to be passed!
- __init__(optionDict)¶
Contruct the object, set the base LogLevel to DEBUG, and parse the options.
- filter(record)¶
Filter records based on the path of the logger.