7月 122012
 
Pocket

rotatelogsにパイプすればローテーションできる。

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    #24時間でローテート
    CustomLog "|bin/rotatelogs logs/access_log 86400" common
</IfModule>

ただし、logrotateのような世代管理は出来ない。

 Leave a Reply