add configurable logfile name
diff --git a/planetstack/util/logger.py b/planetstack/util/logger.py
index 91e47d0..36858e7 100644
--- a/planetstack/util/logger.py
+++ b/planetstack/util/logger.py
@@ -41,7 +41,12 @@
#loggername='console'
#handler=logging.StreamHandler()
#handler.setFormatter(logging.Formatter("%(levelname)s %(message)s"))
- logfile = "/var/log/planetstack.log"
+
+ try:
+ from config import Config
+ logfile = Config().observer_log_file
+ else:
+ logfile = "/var/log/planetstack.log"
if not loggername:
loggername=os.path.basename(logfile)