From 7736ec4e31508e6b2e4f03b4fa8f8a2a0c4ba954 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Mon, 18 Dec 2023 13:11:57 -0800 Subject: [PATCH] Add a [Logging] stanza back in. Documentation to follow. --- src/weewx_data/weewx.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/weewx_data/weewx.conf b/src/weewx_data/weewx.conf index f2a4f807..38bdb0d1 100644 --- a/src/weewx_data/weewx.conf +++ b/src/weewx_data/weewx.conf @@ -488,6 +488,29 @@ version = 5.0.0b17 ############################################################################## +# This section configures modifications to the default logging. + +[Logging] + + # Root logger + [[root]] + handlers = timed_rotate, + + [[handlers]] + # Log to a set of rotating files + [[[timed_rotate]]] + level = DEBUG + formatter = verbose + class = logging.handlers.TimedRotatingFileHandler + # File to log to, relative to WEEWX_ROOT: + filename = log/weewx.log + # When to rotate: + when = midnight + # How many log files to save: + backupCount = 7 + +############################################################################## + # This section configures the internal weewx engine. [Engine]