mod_log_rotate分割日志的问题

回复 收藏
我用了mod_log_rotate这个模块,并且按照要求配置:

# Add to your httpd.conf

LoadModule 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 like

CustomLog logs/access_log.%Y%m%d-%H%M%S common

and have log files named with a human readable date and time.


RotateLogs On

RotateLogsLocalTime On

RotateInterval 86400



但是error.log如何配置了。

errorLog logs/error_log.%Y%m%d-%H%M%S

这样配置文件日期无法转换,想问一下该如何设置了。
2012-03-01 14:31 举报
已邀请:
0

阿铭 管理员

赞同来自:

关于apache的日志切割,请参考 http://www.lishiming.net/thread-566-1-1.html
没有必要使用mod_log_rotate模块

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: