http.confへの記述。
ErrorLog "|/usr/sbin/rotatelogs /var/log/httpd/error_log-%Y%m%d 86400"
CustomLog "|/usr/sbin/rotatelogs /var/log/httpd/access_log-%Y%m%d 86400" combined
"86400"はログを切り替える間隔を秒で指定。
"%Y%m%d"はログファイル名に日付を付加する指定。指定のフォーマットは"man strftime"を参照のこと。
0 件のコメント:
コメントを投稿