report update for logging definitions

This commit is contained in:
Dirk Alders 2025-07-24 14:18:53 +02:00
parent 28e7779eb1
commit acae80d2c0
4 changed files with 10 additions and 8 deletions

View File

@ -78,8 +78,12 @@ def bmp_callback(**data):
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

View File

@ -27,10 +27,8 @@ else:
# Logging
#
APP_NAME = "ambient_info"
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'WARNING'
LOGHOST = 'cutelog'
LOGPORT = 19996
LOG_HOSTNAME = "loggy" # When DEBUG is True
LOG_LEVEL = logging.INFO # STDOUT logging
formatter = report.SHORT_FMT

2
mqtt

@ -1 +1 @@
Subproject commit 328d3471a748472695a61193becdda76c7eefe69
Subproject commit 14e56ccdbf6594f699b4afcfb4acafe9b899e914

2
report

@ -1 +1 @@
Subproject commit 21bac82e0c459ebf6d34783c9249526a657a6bbd
Subproject commit 92bf9fb66a809a8bc71b02b6b815a4b00d56e445