report update for logging definitions
This commit is contained in:
parent
28e7779eb1
commit
acae80d2c0
@ -78,8 +78,12 @@ def bmp_callback(**data):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
report.appLoggingConfigure(config.__BASEPATH__, config.LOGTARGET, ((config.APP_NAME, config.LOGLVL), ),
|
#
|
||||||
fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT)
|
# Logging
|
||||||
|
#
|
||||||
|
report.add_handler_stdout(logger, config.LOG_LEVEL)
|
||||||
|
if config.DEBUG:
|
||||||
|
report.add_handler_socket(logger, host=config.LOG_HOSTNAME)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Initialise data collectors
|
# Initialise data collectors
|
||||||
|
@ -27,10 +27,8 @@ else:
|
|||||||
# Logging
|
# Logging
|
||||||
#
|
#
|
||||||
APP_NAME = "ambient_info"
|
APP_NAME = "ambient_info"
|
||||||
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
|
||||||
LOGLVL = 'WARNING'
|
|
||||||
|
|
||||||
LOGHOST = 'cutelog'
|
LOG_HOSTNAME = "loggy" # When DEBUG is True
|
||||||
LOGPORT = 19996
|
LOG_LEVEL = logging.INFO # STDOUT logging
|
||||||
|
|
||||||
formatter = report.SHORT_FMT
|
formatter = report.SHORT_FMT
|
||||||
|
2
mqtt
2
mqtt
@ -1 +1 @@
|
|||||||
Subproject commit 328d3471a748472695a61193becdda76c7eefe69
|
Subproject commit 14e56ccdbf6594f699b4afcfb4acafe9b899e914
|
2
report
2
report
@ -1 +1 @@
|
|||||||
Subproject commit 21bac82e0c459ebf6d34783c9249526a657a6bbd
|
Subproject commit 92bf9fb66a809a8bc71b02b6b815a4b00d56e445
|
Loading…
x
Reference in New Issue
Block a user