Good Morning:
I am preparing a docker image for my new weatherstation. I am configuring WeeWX the "docker way" where the log data in being written to the stdout via logging handlers.
When I run WeeWX (both in a docker container and on a VM itself), I always see the LOOP output written to stdout. While this is helpful for configuration, I want to suppress this via a configuration setting.
Is there a way to suppress the LOOP data?
Please refer to the LOG SNIPPET and the WeeWX.conf section below for details.
# ========START LOG SNIPPET =============
weewx[1] INFO __main__: Initializing weewx version 4.7.0
weewx[1] INFO __main__: Using Python 3.10.4 (main, Mar 24 2022, 23:15:59) [GCC 10.2.1 20210110]
weewx[1] INFO __main__: Platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.31
weewx[1] INFO __main__: Locale is 'C.UTF-8'
weewx[1] INFO __main__: Using configuration file /home/weewx/weewx.conf
weewx[1] INFO __main__: Debug is 0
weewx[1] INFO weewx.engine: Loading station type Simulator (weewx.drivers.simulator)
weewx[1] INFO weewx.engine: StdConvert target unit is 0x1
weewx[1] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
weewx[1] INFO weewx.manager: Created and initialized table 'archive' in database 'weewx.sdb'
weewx[1] INFO weewx.manager: Created daily summary tables
weewx[1] INFO weewx.engine: Archive will use data binding wx_binding
weewx[1] INFO weewx.engine: Record generation will be attempted in 'hardware'
weewx[1] INFO weewx.engine: Using archive interval of 60 seconds (specified in weewx configuration)
weewx[1] INFO weewx.restx: StationRegistry: Registration not requested.
weewx[1] INFO weewx.restx: Wunderground: Posting not enabled.
weewx[1] INFO weewx.restx: PWSweather: Posting not enabled.
weewx[1] INFO weewx.restx: CWOP: Posting not enabled.
weewx[1] INFO weewx.restx: WOW: Posting not enabled.
weewx[1] INFO weewx.restx: AWEKAS: Posting not enabled.
weewx[1] INFO weewx.engine: 'pyephem' detected, extended almanac data is available
weewx[1] INFO __main__: Starting up weewx version 4.7.0
weewx[1] INFO weewx.engine: Clock error is -0.05 seconds (positive is fast)
weewx[1] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
weewx[1] INFO weewx.manager: Starting backfill of daily summaries
weewx[1] INFO weewx.manager: Empty database
weewx[1] INFO weewx.engine: Starting main packet loop.
LOOP: 2022-03-27 07:17:24 EDT (1648379844) 'altimeter': '31.15866069654221', 'appTemp': '28.46010918752483', 'barometer': '31.099999998967093', 'cloudbase': '1294.323176426526', 'consBatteryVoltage': '12.0', 'dateTime': '1648379844', 'dewpoint': '27.203560993945757', 'ET': 'None', 'heatindex': '32.67858297022247', 'heatingVoltage': '10.964725663844588', 'humidex': '32.67858297022247', 'inDewpoint': '31.079533828013187', 'inHumidity': '29.999999958683617', 'inTemp': '63.00000002065819', 'inTempBatteryStatus': '0', 'maxSolarRad': '1068.3866207089147', 'outHumidity': '79.99999996901272', 'outTemp': '32.67858297022247', 'outTempBatteryStatus': '0', 'pressure': '31.099999998967093', 'radiation': '109.693874983191', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': '10.946701975973381', 'rxCheckPercent': '64.8412332946774', 'supplyVoltage': '12.774749615929705', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '1.5357142497646739', 'windBatteryStatus': '0', 'windchill': '32.67858297022247', 'windDir': '359.9999998140763', 'windGust': '6.197456769996279e-09', 'windGustDir': '359.9999998140763', 'windrun': 'None', 'windSpeed': '5.164547900449179e-09'
# ===== END LOG SNIPPET =====
# ==== START WEEWX.CONF LOG CONFIGURATION =====
# Do not modify this. It is used when installing and updating weewx.
version = 4.7.0
##### LOGGING CONFIGURATION #####
[Logging]
version = 1
disable_existing_loggers = False
# Root logger
[[root]]
level = {log_level}
handlers = console,
# Additional loggers would go in the following section. This is useful for tailoring logging
# for individual modules.
[[loggers]]
# Definitions of possible logging destinations
[[handlers]]
# Log to a set of rotating files
[[[rotate]]]
level = DEBUG
formatter = standard
class = logging.handlers.RotatingFileHandler
filename = /var/log/weewx.log
maxBytes = 10000000
backupCount = 4
# Log to console
[[[console]]]
level = INFO
formatter = standard
class = logging.StreamHandler
# Alternate choice is 'ext://sys.stderr'
stream = ext://sys.stdout
# How to format log messages
[[formatters]]
[[[simple]]]
format = "%(levelname)s %(message)s"
[[[standard]]]
format = "{process_name}[%(process)d] %(levelname)s %(name)s: %(message)s"
[[[verbose]]]
format = "%(asctime)s {process_name}[%(process)d] %(levelname)s %(name)s: %(message)s"
# Format to use for dates and times:
datefmt = %Y-%m-%d %H:%M:%S
# ==== END WEEWX.CONF LOG CONFIGURATION =====