[Zope] Logging Question

Sherwood Robinson srobinson@fredericksburg.com
Tue, 20 Mar 2001 12:00:24 -0500


--------------060001090101040602060106
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Thank You.  tomorrow I will know if it worked... but at least now my 
zope servers started...

Thanks again
Sherwood

Andy McKay wrote:

> Many people manually rotate the logs by running a script to do that. There
> are many ways to do it, but I just change my z2.py so it reads:
> 
> # if READ_ONLY:
> #    lg = logger.file_logger('-') # log to stdout
> # elif os.environ.has_key('ZSYSLOG'):
> #    lg = logger.syslog_logger(os.environ['ZSYSLOG'])
> #elif os.environ.has_key('ZSYSLOG_SERVER'):
> #    lg = logger.syslog_logger(string.split(os.environ['ZSYSLOG_SERVER'],
> ':'))
> #else:
> 
> lg = logger.rotating_file_logger(LOG_PATH, freq='daily')
> 
> --
>   Andy McKay.
> 
> 
> ----- Original Message -----
> From: "Sherwood(Work)" <srobinson@fredericksburg.com>
> To: <zope@zope.org>
> Sent: Tuesday, March 20, 2001 5:53 AM
> Subject: [Zope] Logging Question
> 
> 
>> I have been reading all the documentation on the Zope logging and trying
>> to figure it all out.  But for some reason the information just doesn't
>> seem very clear.   We are having trouble with logs getting up in to the
>> 700M and Zope Starts to suck down resources.
>> 
>> I see there is a way to rotate logs but how to do this still just keeps
>> escaping me.  Every time I try what it looks like it is telling me the
>> server wont start.
>> 
>> Is there a way I can get zope to Just record Errors and not Get and Post
>> since my apache already does that and with the actual user IP not the
>> servers?
>> 
>> Also how do I get this log to rotate out Daily?
>> 
>> The documentation on the Zope site is very unclear and incomplete as is
>> the documentation in, Logger.py, Zlog.py and Zlogger.py.
>> 
>> TIA
>> 
>> Sherwood
>> 
>> --
>> -----------------------------------------------
>> Sherwood Robinson
>> Hostmaster
>> Fredericksburg.com
>> http://www.fredericksburg.com
>> srobinson@fredericksburg.com
>> 
>> 
>> 
>> _______________________________________________
>> Zope maillist  -  Zope@zope.org
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
>> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
-----------------------------------------------
Sherwood Robinson
Hostmaster
Fredericksburg.com
http://www.fredericksburg.com

The Free Lance-Star
Internet Department
616 Amelia St.
Fredericksburg, VA 22401
540-374-5000 ext 5657
srobinson@fredericksburg.com


--------------060001090101040602060106
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Thank You.&nbsp; tomorrow I will know if it worked... but at least now my zope servers started... <br>
<br>
Thanks again<br>
Sherwood<br>
<br>
Andy McKay wrote:<br>
<blockquote type="cite" cite="mid:002b01c0b15c$b2e58df0$ae03a8c0@activestate.com"><pre wrap="">Many people manually rotate the logs by running a script to do that. There<br>are many ways to do it, but I just change my z2.py so it reads:<br><br># if READ_ONLY:<br>#    lg = logger.file_logger('-') # log to stdout<br># elif os.environ.has_key('ZSYSLOG'):<br>#    lg = logger.syslog_logger(os.environ['ZSYSLOG'])<br>#elif os.environ.has_key('ZSYSLOG_SERVER'):<br>#    lg = logger.syslog_logger(string.split(os.environ['ZSYSLOG_SERVER'],<br>':'))<br>#else:<br><br>lg = logger.rotating_file_logger(LOG_PATH, freq='daily')<br><br>--<br>  Andy McKay.<br><br><br>----- Original Message -----<br>From: "Sherwood(Work)" <a class="moz-txt-link-rfc2396E" href="mailto:srobinson@fredericksburg.com">&lt;srobinson@fredericksburg.com&gt;</a><br>To: <a class="moz-txt-link-rfc2396E" href="mailto:zope@zope.org">&lt;zope@zope.org&gt;</a><br>Sent: Tuesday, March 20, 2001 5:53 AM<br>Subject: [Zope] Logging Questi
  <blockquote type="cite"><pre wrap="">I have been reading all the documentation on the Zope logging and trying<br>to figure it all out.  But for some reason the information just doesn't<br>seem very clear.   We are having trouble with logs getting up in to the<br>700M and Zope Starts to suck down resources.<br><br>I see there is a way to rotate logs but how to do this still just keeps<br>escaping me.  Every time I try what it looks like it is telling me the<br>server wont start.<br><br>Is there a way I can get zope to Just record Errors and not Get and Post<br>since my apache already does that and with the actual user IP not the<br>servers?<br><br>Also how do I get this log to rotate out Daily?<br><br>The documentation on the Zope site is very unclear and incomplete as is<br>the documentation in, Logger.py, Zlog.py and Zlogger.py.<br><br>TIA<br><br>Sherwood<br><br>--<br>-----------------------------------------------<br>Sherwood Robinson<br>Hostmaster<br>Fredericksburg.com<br><a c
    <pre wrap=""><!----><br><br>_______________________________________________<br>Zope maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a><br><a class="moz-txt-link-freetext" href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</a><br>**   No cross posts or HTML encoding!  **<br>(Related lists - <br> <a class="moz-txt-link-freetext" href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</a><br> <a class="moz-txt-link-freetext" href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</a> )<br><br><br></pre>
    </blockquote>
    <br>
    <pre class="moz-signature">-- 
-----------------------------------------------
Sherwood Robinson
Hostmaster
Fredericksburg.com
<a class="moz-txt-link-freetext" href="http://www.fredericksburg.com">http://www.fredericksburg.com</a>

The Free Lance-Star
Internet Department
616 Amelia St.
Fredericksburg, VA 22401
540-374-5000 ext 5657
<a class="moz-txt-link-abbreviated" href="mailto:srobinson@fredericksburg.com">srobinson@fredericksburg.com</a></pre>
    <br>
</body></html>
--------------060001090101040602060106--