Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

第 19 章 log

目录

19.1. cronolog
19.1.1. Apache
19.1.2. Lighttpd
19.2. logrotate

19.1. cronolog

cd /usr/ports/sysutils/cronolog/
make install clean
			

19.1.1. Apache

CustomLog "|/usr/local/sbin/cronolog /data/log/domain/%Y%m%d.log" combined
CustomLog "|/usr/local/sbin/cronolog /var/log/www/%Y%m/%d_access_log" combined
				

19.1.2. Lighttpd

accesslog.filename = "| /usr/local/sbin/cronolog /var/log/lighttpd/%Y/%m/%d/access.log"