[issue1197] logging: formatter does not accept %(funcName)s properly
Christian Meesters
report at bugs.python.org
Mon Sep 24 16:27:30 CEST 2007
New submission from Christian Meesters:
Adding %(funcName)s to a formatter will only insert the calling logging
function (e.g. "info" for logging.info) into messages not the function
where the message comes from:
<snip>
logging.Formatter('%(levelname)-8s %(funcName)s %(message)s'
def foo():
logging.info("test")
will insert
'INFO info test'
in the log instead of
'INFO foo test'
----------
nosy: +CM
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1197>
__________________________________
More information about the Python-bugs-list
mailing list