Re: [Zope] how to generate debug.log for requestprofiler

2005-04-14 Thread Andrew Langmead
On Apr 14, 2005, at 6:02 PM, Jim Abramson wrote:

At some point btn Zope 2.6.2 and 2.7.4, it seems way you set up a logfile to be used by requestprofiler.py has changed. 

Now I need "debug.log" - whats the proper way to generate one?  I've just been googling and can't find explicit instructions about this.



The log that I think of as the "debug.log" seems to now be called the "event log". Request profiler still needs the "trace log". You can enable it by putting the following stanza in your zope.conf file:


level WARN

path $INSTANCE/log/trace.log
format %(message)s



The zopectl command isn't the direct equivalent of the old z2.py. It is a wrapper around it. (the rough equivalent of z2.py is run.py, The zopectl program spawn something that spawns run.py) so command line parameters added to zopectl aren't seen by zope itself.

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


[Zope] how to generate debug.log for requestprofiler

2005-04-14 Thread Jim Abramson
Title: how to generate debug.log for requestprofiler






At some point btn Zope 2.6.2 and 2.7.4, it seems way you set up a logfile to be used by requestprofiler.py has changed.


Now I need "debug.log" - whats the proper way to generate one?  I've just been googling and can't find explicit instructions about this.

Doing runzope or zopectl with -M aren't working, and there is no obvious directive in zope.conf for it.  Unless I am supposed to configure a logger at DEBUG level myself, from the zope.conf and make sure it's called debug.log, but this doesn't seem right

Any suggestions?


Thanks,

Jim



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