[Zope] logging module in Zope?

Lennart Regebro lennart@torped.se
Sun, 7 Apr 2002 22:57:42 +0200


From: "kapil thangavelu" <kthangavelu@earthlink.net>
> > 1. Peter Bengtsson still haven't said why he doesn't want to use Zopes
> > logging system.
>
> ok, i think he has

I missed that in that case.

> personally i don't like the api, i prefer
>
> >> log.debug(message)
> to
>
> >> LOG(msg, INFO, extra)

Well, as simple as possible is good, but sending subsystem, level and
message is the minimum. If you do it with log(sys, level, msg) or
log.level(sys, msg) doesn't really matter...

> i think that its a relevant to consider this module if only because it has
> some chance of becoming a standard python idiom, although perhaps not of
> great relevance to zope2x.

Depends on when your log becomes standard and how long Zope 2 lives on. :-)