logging module in Zope?
Has anybody had any experience in using Vinay Sajip's python logging module in Zope development? I would like to apply it to my python product development, and am just wondering about more zope specific use and hints. http://www.red-dove.com/python_logging.html Peter
From: "Peter Bengtsson" <mail@peterbe.com>
Has anybody had any experience in using Vinay Sajip's python logging module in Zope development? I would like to apply it to my python product development, and am just wondering about more zope specific use and hints.
I haven't used it, but maybe more help cuold be given if you told us why you want to use it in Zope, and not use the loggin functionality that Zope provides. Best Regards Lennart Regebro Torped Strategi och Kommunikation AB
On Sunday 07 April 2002 02:50 am, Lennart Regebro wrote:
From: "Peter Bengtsson" <mail@peterbe.com>
Has anybody had any experience in using Vinay Sajip's python logging
module
in Zope development? I would like to apply it to my python product development, and am just wondering about more zope specific use and hints.
I haven't used it, but maybe more help cuold be given if you told us why you want to use it in Zope, and not use the loggin functionality that Zope provides.
Because the Zope logging functionality is really quite poor? Ever asked yourself why it's called "stupid" logging? The ZC guys were basically hoping that someone, someday would come along and write a better one. Vinay's done that :) Richard
At 18:50 2002-04-06 +0200, Lennart Regebro wrote:
From: "Peter Bengtsson" <mail@peterbe.com>
Has anybody had any experience in using Vinay Sajip's python logging module in Zope development? I would like to apply it to my python product development, and am just wondering about more zope specific use and hints.
I haven't used it, but maybe more help cuold be given if you told us why you want to use it in Zope, and not use the loggin functionality that Zope provides.
In fact I want it for development. Not for monitoring. By having each method register itself like "getName() being run now" then I would be able to see exactly what goes on and in which order things are run.
On Sunday 07 April 2002 10:24 pm, Peter Bengtsson wrote:
In fact I want it for development. Not for monitoring. By having each method register itself like "getName() being run now" then I would be able to see exactly what goes on and in which order things are run.
If getName() is a DTML or ZSQL Method, or a Python Script object (ie. not an on-disk Python Product method) then use my CallProfiler (look on zope.org). It'll give you a breakdown of the calls, with the timings too. I'm hoping that one day we'll be able to integrate the on-disk python method calls into the profiler - that would rock :) Richard
From: "Peter Bengtsson" <mail@peterbe.com>
In fact I want it for development. Not for monitoring. By having each method register itself like "getName() being run now" then I would be able to see exactly what goes on and in which order things are run.
Sound like monitoring to me. :-) How do you mean "register"? When I need to do this I make a LOG call at the start of each method. So zLOG works for me doing this.
On Sunday 07 April 2002 12:58 am, Peter Bengtsson wrote:
Has anybody had any experience in using Vinay Sajip's python logging module in Zope development? I would like to apply it to my python product development, and am just wondering about more zope specific use and hints.
It'll work fine. The important issue to remember is that the logging module is shared amongst all Zope components that use it - so make sure the name you log as is unique to your application (or the component of the application). Otherwise it should work just fine. Richard
participants (3)
-
Lennart Regebro -
Peter Bengtsson -
Richard Jones