[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect
Bikram Zesto II
report at bugs.python.org
Fri May 30 16:19:04 CEST 2014
Bikram Zesto II added the comment:
I see what you are saying about implementation kludginess and will likely subclass just to get my app done.
On the other hand, I think the POLA(stonishment) violation of ignoring format-related configuration of the Handler (even tho it is a subclass) matters too :-)
Was not thinking a Formatter should be put _into_ mapLogRecord. More like idly wondering if mapLogRecord could be implemented as a Formatter. If this sounds like a non-kludge you would be interested in I can work on that. Added benefit being that users could override without subclassing.
Maybe this is more like a documentation issue (since there is no indication that HTTPHandler does not/cannot use a Formatter like other of Handlers?
----------
keywords: +patch
status: pending -> open
Added file: http://bugs.python.org/file35410/logging.handlers.txt.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21608>
_______________________________________
More information about the Python-bugs-list
mailing list