Python Logging - Working with Filters
Python’s logging module provides support for filters. You can add a Filter to a Handler or a Logger object for more sophisticated filtering than you can get through log levels.
Python’s documentation gives the following example of how you might use a logging filter:
A filter initialized with ‘A.B’ will allow events logged by loggers ‘A.B’, ‘A.B.C’, ‘A.B.C…


