Allowing python logging from restricted code
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... Furthermore, I'd like to change zope.conf to allow the flexibility of defining loggers that ZConfig normally provides out of the box, rather than being limited to just the event log and the access log. I'd like to just do this for the trunk... Anyway, please let me know what you think! cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
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:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
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
participants (2)
-
Chris Withers -
Jim Fulton