Barry Warsaw wrote:
AFAIK, the online logging package docs are about it. That's not the
easiest way to learn how to use the package unfortunately.
*sigh*
What is the easiest way then?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
__
On Tue, 2004-04-20 at 10:01, Chris Withers wrote:
> This discussion smells like that string should be computed from introspection.
>
> Why can't it be computed from introspecting whatever code called the log method?
You probably could do it via sys._getframe(). I'm not sure you should
though. ;
From: "Chris Withers" <[EMAIL PROTECTED]>
> This discussion smells like that string should be computed from
introspection.
>
> Why can't it be computed from introspecting whatever code called the log
method?
Well, first of all, how? __name__ should always be available, but that is
the name of the
Lennart Regebro wrote:
Yeah, but is it reasonable to think that people who write new products will
do this? A rule that most people will break is a bad rule... That people
working on Zope itself can be well versed enough to use Zope. for things
in teh Zope repository seems reasonable. But will
[Chris McDonough]
> There probably are no log-trawling tools. The output generated by zLOG
> is basically unparseable.
Alas, that hasn't stopped people from writing trawlers to analyze ZEO server
and client logs. That one's going to be my headache "to fix"(*), and has
some urgency since ZODB/ZEO
On Wed, 2004-04-14 at 18:53, Fred Drake wrote:
> Keeping it simple is good, but I'd still like to see every logging subsystem
> in code that ships with the Zope 2 core start with "Zope." This is a
> potential backwards compatibility issue, though, since log-trawling tools are
> already using th
On Wednesday 14 April 2004 10:45 am, Andreas Jung wrote:
> For consitency: Zope.Products.
> For lazy writers: Zope. X
>
> I prefer the second solution...everyone should know what are products and
> what
> are packages. In fact the name does not matter because you can see in the
> tra
On Wednesday 14 April 2004 11:44 am, Lennart Regebro wrote:
> Yeah, but is it reasonable to think that people who write new products
> will do this? A rule that most people will break is a bad rule... That
> people working on Zope itself can be well versed enough to use Zope.
> for things i
From: "Andreas Jung" <[EMAIL PROTECTED]>
> Keep the product name as it is...means Products/ should use
> Zope. as logger name. No need to introduce a new mapping. Keep it
> simple.
Yeah, but is it reasonable to think that people who write new products will
do this? A rule that most people
--On Mittwoch, 14. April 2004 16:45 Uhr +0200 Andreas Jung
<[EMAIL PROTECTED]> wrote:
--On Mittwoch, 14. April 2004 10:57 Uhr +0200 Lennart Regebro
<[EMAIL PROTECTED]> wrote:
From: "Andreas Jung" <[EMAIL PROTECTED]>
When I look through the Zope HEAD code then you are using e.g.
'zodb.conn' or
--On Mittwoch, 14. April 2004 10:57 Uhr +0200 Lennart Regebro
<[EMAIL PROTECTED]> wrote:
From: "Andreas Jung" <[EMAIL PROTECTED]>
When I look through the Zope HEAD code then you are using e.g.
'zodb.conn' or 'zodb.storage' but also 'Zope' as loggername. Do we
have to agree on some common usage
From: "Andreas Jung" <[EMAIL PROTECTED]>
> When I look through the Zope HEAD code then you are using e.g.
> 'zodb.conn' or 'zodb.storage' but also 'Zope' as loggername. Do we
> have to agree on some common usage of the logger names?
> E.g. for logging calls in the reST packagebetter using 'Zope
On Wednesday 14 April 2004 01:49 am, Andreas Jung wrote:
> What is the recommend way to migrate existing code?
>
> I assume using:
>
> import logging
> logger = logging.getLogger(loggername).
That works, and certainly matches what I've been doing, and what we see in the
Zope 3 codebase as w
+1
What is the recommend way to migrate existing code?
I assume using:
import logging
logger = logging.getLogger(loggername).
When I look through the Zope HEAD code then you are using e.g.
'zodb.conn' or 'zodb.storage' but also 'Zope' as loggername. Do we
have to agree on some common usage of th
14 matches
Mail list logo