我用了mod_log_rotate这个模块,并且按照你们要求配置:# Add to your httpd.confLoadModule log_rotate_module modules/mod_log_rotate.so
# Directives provided by mod_log_rotate You can specify a strftime() format string as the log file name.
So you can do something likeCustomLog logs/access_log.%Y%m%d-%H%M%S commonand have log files named with a human readable date and time.
RotateLogs OnRotateLogsLocalTime OnRotateInterval 86400但是error.log如何配置了。errorLog logs/error_log.%Y%m%d-%H%M%S这样配置文件日期无法转换,想问一下该如何设置了。
# Directives provided by mod_log_rotate You can specify a strftime() format string as the log file name.
So you can do something likeCustomLog logs/access_log.%Y%m%d-%H%M%S commonand have log files named with a human readable date and time.
RotateLogs OnRotateLogsLocalTime OnRotateInterval 86400但是error.log如何配置了。errorLog logs/error_log.%Y%m%d-%H%M%S这样配置文件日期无法转换,想问一下该如何设置了。
http://www.cnblogs.com/luoine/archive/2010/10/15/1852509.html
http://www.baidu.com/s?wd=mod_log_rotate&rsv_bp=0&rsv_spt=3&rsv_n=2&inputT=478