打开 Wamp的 httpd.conf文件

把下面两句话拷贝进去即可:

1.设置错误log的,
    ErrorLog "|bin/rotatelogs.exe logs/error_%Y_%m_%d.log 86400"

2.设置访问log的
    CustomLog "|bin/rotatelogs.exe logs/access_%Y_%m_%d.log 86400" common

  

说明:bin/rotaelogs.exe 是生成文件的工具,

         logs/是日志的目录

         error_%Y_%m_%d.log是日志的文件名,Y代表年,m代表月,d代表日

         86400代表文件大小 80M

更详细:http://www.cnblogs.com/awinlei/archive/2013/03/25/2981147.html

 

相关文章:

  • 2021-09-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案