Re: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Chris Withers

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@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 )


RE: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Tim McLaughlin
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Withers
Sent: Tuesday, October 11, 2005 2:50 AM
To: [EMAIL PROTECTED]
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@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 )
___
Zope-Dev maillist  -  Zope-Dev@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 )


Re: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Chris Withers

Hi Tim,

Tim McLaughlin wrote:

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.


I';d sure be interested in taking a look, but python's logging package 
is pretty all-inclusive and extremely flexible.


All that it needs is some security declarations to make it available 
from restricted code and the ability to define more than just and event 
and access log in zope.conf...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@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 )


Re: [Zope-dev] Allowing python logging from restricted code

2005-10-10 Thread Jim Fulton

Chris Withers wrote:

Hi All,

Would anyone have a problem if I added the necessary security 
declarations to allow the python logging module to be used from 
restricted code?


I'd like do this both for the trunk and the 2.8 branch, unless anyone 
has huge objections...


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

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  Zope-Dev@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 )