[Zope-dev] Allowing python logging from restricted code

Tim McLaughlin tim at siteworx.com
Tue Oct 11 08:09:36 EDT 2005


We are currently finishing up a "debug_log" much like the error log that
Python scripts can write too.  We would happily make that source
available if you think it will fit the bill.

Cheers,
Tim

-----Original Message-----
From: zope-dev-bounces at zope.org [mailto:zope-dev-bounces at zope.org] On
Behalf Of Chris Withers
Sent: Tuesday, October 11, 2005 2:50 AM
To: jim at zope.com
Cc: zope-dev
Subject: Re: [Zope-dev] Allowing python logging from restricted code

Hi Jim,

Jim Fulton wrote:
> 
> I think you need to be very careful with this. 

What's the concern?
I'm, at most, planning on making the getLogger function and the top
level logging constants (eg: logging.INFO, etc) available...

> IMO, this is something
> that should not be turned on by default. OTOH, I have no problem with 
> making this possible to turn on.

zope.conf option?

Also, do you have any comment on the second half of my proposal, which
was to do with making it possible to define more than just event and
access logs in zope.conf?

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

_______________________________________________
Zope-Dev maillist  -  Zope-Dev at zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  ** (Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


More information about the Zope-Dev mailing list