diff --git a/config_example/config.py b/config_example/config.py index d85f22c..2d71cba 100644 --- a/config_example/config.py +++ b/config_example/config.py @@ -26,6 +26,7 @@ LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout' # APP_NAME = 'smarthome' LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout' +LOGLVL = 'DEBUG' LOGHOST = 'localhost' LOGPORT = 19996 diff --git a/smarthome.py b/smarthome.py index 2c5d499..a8e14f1 100644 --- a/smarthome.py +++ b/smarthome.py @@ -369,7 +369,7 @@ class MyApp(wx.App): if __name__ == "__main__": - report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, 'DEBUG'), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT) + report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, config.LOGLVL), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT) # app = MyApp(0) app.frame.run()