ã§ç´¹ä»ããã¦ãã mod_log_rotate ããããã§ãã
ããã¥ã¡ã³ãã«ã¯æ¸ãã¦ãªã(ã¨æã)ãã§ãããCustomLogã®ãã¡ã¤ã«åã«strftimeã®æ¸å¼æå®ã使ããããã«ãªãã¾ãã
ã¤ãã§ã«ãrotatelogs ãã cronolog ã®æ¹ããããããªã³ããå°ããããªã®ã§ãErrorLogã¯cronologã使ãããã«ãã¦ã¿ã¾ããã
before
ErrorLog "|/usr/local/bin/rotatelogs /var/log/httpd/irori.org/www.err.%Y-%m-%d 86400 +540" CustomLog "|/usr/local/bin/rotatelogs /var/log/httpd/irori.org/www.acc.%Y-%m-%d 86400 +540" full env=!nologging
after
ErrorLog "|/usr/bin/cronolog /var/log/httpd/irori.org/www.err.%Y-%m-%d" CustomLog "/var/log/httpd/irori.org/www.acc.%Y-%m-%d" full env=!nologging
ãªãã¨ãããã¨ã§ããã
CustomLogã®æ°ã¶ãã ãããã»ã¹ãæ¸ã£ãã®ã¨ãã¡ã¢ãªä½¿ç¨éã ErrorLogã®æ°Ã(rotatelogs - cronolog) ã®ã¶ãã ãæ¸ãã¾ããã
ã¨ã³ã