Add log_file property to config
MODIFY
plextraktsync/config.py
plextraktsync/config.py
@@ -127,6 +127,14 @@ def __contains__(self, item):
self.initialize()
return dict.__contains__(self, item)
+ @property
+ def log_file(self):
+ from os.path import join
+
+ from .path import log_dir
+
+ return join(log_dir, self["logging"]["filename"])
+
def initialize(self):
"""
Config load order:

Add log_file property to config