[issue1197] logging: formatter does not accept %(funcName)s properly

2007-09-24 Thread Christian Meesters

Changes by Christian Meesters:


--
components: Library (Lib)
severity: minor
status: open
title: logging: formatter does not accept %(funcName)s properly
type: behavior
versions: Python 2.5

__
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



[issue1197] logging: formatter does not accept %(funcName)s properly

2007-09-24 Thread Christian Meesters

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:


logging.Formatter('%(levelname)-8s %(funcName)s %(message)s'

def foo():
logging.info("test")

will insert

'INFOinfo test'

in the log instead of 

'INFOfoo 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