From d5735ce2a744119e00089588bbaa9d269a22de7d Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 15 Jul 2012 21:47:21 -0500 Subject: [PATCH] logging.cfg: log to a file, and use the formatter --- logging.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/logging.cfg b/logging.cfg index 850e4ed..4a32e21 100644 --- a/logging.cfg +++ b/logging.cfg @@ -18,10 +18,11 @@ propagate = 1 qualname = drbotzo [handler_dr.botzo] -class = StreamHandler +class = FileHandler level = DEBUG -args = (sys.stdout,) +formatter = dr.botzo +args = ('dr.botzo.log', 'a') [formatter_dr.botzo] -format = %(asctime)s %(levelname)s %(message)s +format = %(asctime)s %(levelname)-8s %(message)s datefmt =