Browse Source

Log level definition to config file

mod_update
Dirk Alders 4 years ago
parent
commit
d4f0f22305
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      config_example/config.py
  2. 1
    1
      smarthome.py

+ 1
- 0
config_example/config.py View File

@@ -26,6 +26,7 @@ LOGTARGET = 'stdout'   # possible choices are: 'logfile' or 'stdout'
26 26
 #
27 27
 APP_NAME = 'smarthome'
28 28
 LOGTARGET = 'stdout'   # possible choices are: 'logfile' or 'stdout'
29
+LOGLVL = 'DEBUG'
29 30
 
30 31
 LOGHOST = 'localhost'
31 32
 LOGPORT = 19996

+ 1
- 1
smarthome.py View File

@@ -369,7 +369,7 @@ class MyApp(wx.App):
369 369
 
370 370
 
371 371
 if __name__ == "__main__":
372
-    report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, 'DEBUG'), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT)
372
+    report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, config.LOGLVL), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT)
373 373
     #
374 374
     app = MyApp(0)
375 375
     app.frame.run()

Loading…
Cancel
Save