Add logger to factory
+from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.decorators.memoize import memoize
@@ -113,6 +114,12 @@ def walker(self):
return w
+ @cached_property
+ def logger(self):
+ from plextraktsync.logging import logger
+
+ return logger
+
@memoize
def console_logger(self):
from rich.logging import RichHandler
@@ -139,3 +146,4 @@ def config(self):
factory = Factory()
+logger = factory.logger
