logging.cfg: log to a file, and use the formatter
This commit is contained in:
parent
9654f4de98
commit
d5735ce2a7
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user