Re: logging producing redundant entries
- From: Peter Otten <__peter__@xxxxxx>
- Date: Fri, 31 Mar 2006 20:17:10 +0200
Jed Parsons wrote:
Am I somehow accumulating a growing list of loggers by having this code
at the top of a zope Extension?
I'd rather look after the number of handlers which is probably growing and
causing your problem. Normally it shouldn't matter how often you repeat
the logging.getLogger(name) call as long as the name is always the same.
For easier diagnosis you can include the loggername ("%(name)s") in the
message.
Do you maintain a hierarchy of loggers (names with dots) with a handler for
each logger? Then it might help to set the loggers' 'propagate' attribute
to False.
Peter
.
- References:
- logging producing redundant entries
- From: Jed Parsons
- Re: logging producing redundant entries
- From: Peter Otten
- Re: logging producing redundant entries
- From: Jed Parsons
- logging producing redundant entries
- Prev by Date: Re: Find similar images using python
- Next by Date: Re: urllib2 through basic auth'ed proxy
- Previous by thread: Re: logging producing redundant entries
- Next by thread: Re: logging producing redundant entries
- Index(es):
Relevant Pages
|