[issue932563] logging: need a way to discard Logger objects

2008-01-18 Thread Vinay Sajip
Vinay Sajip added the comment: LoggerAdapter class added to trunk. Documentation also updated. -- resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563

[issue932563] logging: need a way to discard Logger objects

2008-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: I've posted a proposal to python-list: you can view via http://groups.google.co.uk/group/comp.lang.python/browse_frm/thread/336eb031c85758fa or http://article.gmane.org/gmane.comp.python.general/553877 Tracker [EMAIL

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: Antoine, I take your point, but there are a number of ways of doing what you want, apart from the extra context argument: 1. Use your own logger classes which do what you want. It's probably best to make this a wrapper class so you can define different ones for

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Vinay Sajip
Changes by Vinay Sajip: -- priority: high - normal Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563 ___ Python-bugs-list mailing list Unsubscribe:

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Ideally, it would be best if loggers didn't live forever behind the scenes if they have no non-default configuration, but documenting their long-lived nature and the recommended alternate ways to deal with getting additional context information into the

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: Ok, but let's continue the discussion on comp.lang.python, as this is probably not the best place for an extended discussion. I'll post there soon with a proposal. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Please be sure to post a link to the thread here, as not everyone here reads comp.lang.python. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563

[issue932563] logging: need a way to discard Logger objects

2008-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't follow comp.lang.python either, so I'd be grateful if you give a link to the gmane thread ;) I hope we can find an useful solution to this limitation, logging is a very important task and the stdlib should satisfy all common wishes IMO.

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Vinay Sajip
Vinay Sajip added the comment: 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

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I have met this problem too some time ago, so could you please reopen the bug? Saying creating a lot of connection-bound logger objects is an antipattern doesn't help. It's the only simple way of doing something useful: have a logging target with

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: s/in every logging class/in every logging call/, sorry. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563 ___ Python-bugs-list

[issue932563] logging: need a way to discard Logger objects

2008-01-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: This could probably be solved with an optional argument to getLogger() and a weakref. Do you want me to write a patch? -- nosy: +pitrou Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563

[issue932563] logging: need a way to discard Logger objects

2008-01-03 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563 ___ Python-bugs-list mailing list Unsubscribe: