mirror of
https://github.com/weewx/weewx.git
synced 2026-04-20 01:26:56 -04:00
Add a [Logging] stanza back in.
Documentation to follow.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user