Log level definition to config file

This commit is contained in:
Dirk Alders 2021-01-07 00:49:16 +01:00
parent fdef5e6a9e
commit d4f0f22305
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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()