PatternFilter
Logging Filter based on pattern.
- class DIRAC.Resources.LogFilters.PatternFilter.PatternFilter(optionDict)
Bases:
object
Filter module to define a list of accepted and rejected words.
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)
Generate lists of accepted and rejected words based on optionDict.
- filter(record)
Filter records based on a list of accepted and rejected words.