Add Filtering support to logger instance
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -118,11 +118,13 @@ def walker(self):
def logger(self):
import logging
+ from plextraktsync.logger.filter import LoggerFilter
from plextraktsync.logging import initialize
config = self.config()
initialize(config)
logger = logging.getLogger("PlexTraktSync")
+ logger.addFilter(LoggerFilter(config["logging"]["filter"]))
return logger

Add Filtering support to logger instance