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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1197>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to