This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CM
Recipients CM
Date 2007-09-24.14:27:30
SpamBayes Score 0.25827274
Marked as misclassified No
Message-id <1190644050.62.0.462485295954.issue1197@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2007-09-24 14:27:30CMsetspambayes_score: 0.258273 -> 0.25827274
recipients: + CM
2007-09-24 14:27:30CMsetspambayes_score: 0.258273 -> 0.258273
messageid: <1190644050.62.0.462485295954.issue1197@psf.upfronthosting.co.za>
2007-09-24 14:27:30CMlinkissue1197 messages
2007-09-24 14:27:30CMcreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.