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
<http://bugs.python.org/issue21608>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com