Home | Mirror | Search

第 16 章 log

目錄

1. cronolog
1.1. Apache
1.2. Lighttpd
2. logrotate

1. cronolog

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

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
				

1.2. Lighttpd

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