From 908e51691056bd1e33c06dd0caec9e6ac774602d Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 9 Oct 2017 23:38:12 +0200 Subject: [PATCH] Fix timed rotation logging example (fixes #723) --- logging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.md b/logging.md index 53696a38..6f4e1ad9 100644 --- a/logging.md +++ b/logging.md @@ -66,7 +66,7 @@ class = handlers.TimedRotatingFileHandler # Specify the output file and parameter for rotation here. # See https://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler # Example: rollover at midnight and keep 7 files (means one week) -args = ('/var/log/radicale/log', when='midnight', interval=1, backupCount=7) +args = ('/var/log/radicale/log', 'midnight', 1, 7) formatter = full ```