在httpd.conf中修改ErrorLog和CustomLog的配置
ErrorLog "|E:/apache2.2/bin/rotatelogs.exe E:/apache2.2/logs/error_%Y_%m_%d.log 86400 480" CustomLog "|E:/apache2.2/bin/rotatelogs.exe E:/apache2.2/logs/access_%Y_%m_%d.log 86400 480" common
*rotatelogs.exe的路径换成自已的绝对路径
*自定义日志处理后,进程中会多出几个rotatelogs.exe和cmd.exe,占用不少内存,有待解决。