[Zope-dev] Re: zLOG deprecation?

2005-12-08 Thread Chris Withers
Philipp von Weitershausen wrote: See below :). Of course, you don't have to deprecate zLOG instantly. How else do you stop people still following the old patterns ;-) I'm happy to sign up for this, but can't promise when it'll happen... So let's schedule it for Zope 2.10 then :). OK, I

[Zope-dev] Re: zLOG deprecation?

2005-12-07 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: This would probably best be handled by one person, so if you are willing to do all the grepping and updating, making zLOG deprecated would just be a minor operation :). ...but one i don't know how to perform. What code would I

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Florent Guillaume wrote: Just because you don't see the use in something doesn't mean it has to go away. There's nothing to stop you defining your own log levels with the python logging module. I regularly (eg: MailingLogger) define a report level that is 1 above INFO. In my book BLATHER

[Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Philipp von Weitershausen wrote: This would probably best be handled by one person, so if you are willing to do all the grepping and updating, making zLOG deprecated would just be a minor operation :). ...but one i don't know how to perform. What code would I insert and where? I'm happy to

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Tim Peters wrote: [Dennis Allison] We probably want an ALL level as well which would map to the NOTSET of the Python logging code and log everything. Why not call it NOTSET? Then you already have it ;-) Or forget it -- TRACE gets everything anyway. Yeah, what he said ;-) Also note that

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Tim Peters
[Tim Peters] Also note that the code Florent pointed at is part of ZODB, not part of Zope. Zope shouldn't use it directly. Growing its own copy would be OK, or refactoring so that ZODB and Zope both get it from a shared new mini-project. [Chris Withers] Sorry, which code are we talking

[Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Philipp von Weitershausen
Chris Withers wrote: Is zLOG deprecated? If not, it should be... +10 zLOG/__init__.py says: Note: This module exists only for backward compatibility. Any new code for Zope 2.8 and newer should use the logging module from Python's standard library directly. zLOG is only an

[Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Chris Withers
Philipp von Weitershausen wrote: If not, it should be... +10 Yeah, me too! Hence why I was asking ;-) That means we could deprecate it even in Zope 2.9, using zLOG has already been discouraged in Zope 2.8. Cool, Andreas, can you make it start emitting deprecation warnings? (if you do,

[Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Florent Guillaume
Chris Withers wrote: # In the days of zLOG, there were 7 standard log levels, and ZODB/ZEO used # all of them. Here's how they map to the logging package's 5 standard # levels: # #zLOG logging #---- #

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Dennis Allison
We probably want an ALL level as well which would map to the NOTSET of the Python logging code and log everything. Florent, I don't see a TRACE level in this list. Did you think one was needed? On Mon, 5 Dec 2005, Florent Guillaume wrote: Chris Withers wrote: # In the days of zLOG,

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Tim Peters
[Dennis Allison] We probably want an ALL level as well which would map to the NOTSET of the Python logging code and log everything. Why not call it NOTSET? Then you already have it ;-) Or forget it -- TRACE gets everything anyway. Florent, I don't see a TRACE level in this list. Did you

[Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: If not, it should be... +10 Yeah, me too! Hence why I was asking ;-) That means we could deprecate it even in Zope 2.9, using zLOG has already been discouraged in Zope 2.8. Cool, Andreas, can you make it start emitting