Log level definition to config file
This commit is contained in:
parent
fdef5e6a9e
commit
d4f0f22305
@ -26,6 +26,7 @@ LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
|||||||
#
|
#
|
||||||
APP_NAME = 'smarthome'
|
APP_NAME = 'smarthome'
|
||||||
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
||||||
|
LOGLVL = 'DEBUG'
|
||||||
|
|
||||||
LOGHOST = 'localhost'
|
LOGHOST = 'localhost'
|
||||||
LOGPORT = 19996
|
LOGPORT = 19996
|
||||||
|
@ -369,7 +369,7 @@ class MyApp(wx.App):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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 = MyApp(0)
|
||||||
app.frame.run()
|
app.frame.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user