[Zope] Logging Question

Andy McKay andym@ActiveState.com
Tue, 20 Mar 2001 08:42:05 -0800


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