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
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 )
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
participants (3)
-
Andy McKay -
Sherwood Robinson -
Sherwood(Work)