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 vinay.sajip
Recipients fdrake, pitrou, tim.peters, vinay.sajip
Date 2008-01-06.10:39:16
SpamBayes Score 0.043723993
Marked as misclassified No
Message-id <1199615958.35.0.433089911873.issue932563@psf.upfronthosting.co.za>
In-reply-to
Content
There's probably no need. Fred's initial reason for wanting this (usage
of connection-specific loggers, which would be an anti-pattern in my
book) was later solved by him using an application-specific wrapper.
Also, changes made to logging after this issue was created make it
easier to include context information (e.g. connection IDs) in logging
calls.

So: I don't think it is good behaviour for any application to create a
large (=> potentially unbounded) set of loggers. The number of loggers
created should be dependent on the granularity of logging which the
application developer wants to use. If this approach is followed, the
number of loggers is unlikely to lead to memory hogging by the logging
package. So, I propose to close this ticket now, but anyone can of
course reopen it if they think there is still an issue here which needs
addressing.

I will review the docs to see if I need to clarify that loggers should
not be created on a per-connection (or analogous) basis.
History
Date User Action Args
2008-01-06 10:39:18vinay.sajipsetspambayes_score: 0.043724 -> 0.043723993
recipients: + vinay.sajip, tim.peters, fdrake, pitrou
2008-01-06 10:39:18vinay.sajipsetspambayes_score: 0.043724 -> 0.043724
messageid: <1199615958.35.0.433089911873.issue932563@psf.upfronthosting.co.za>
2008-01-06 10:39:17vinay.sajiplinkissue932563 messages
2008-01-06 10:39:16vinay.sajipcreate