logging.cfg: log to a file, and use the formatter

This commit is contained in:
Brian S. Stephan 2012-07-15 21:47:21 -05:00
parent 9654f4de98
commit d5735ce2a7
1 changed files with 4 additions and 3 deletions

View File

@ -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 =