Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | 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"