# Single process multi-host log # In this example # Jon and Tom both get their own logs # CGI accesses receive thier own log # Images get their own log # Everything is buffered # Everything, except images, is logged to the usual place %FILES= ( IMAGES=>[">>/var/log/httpd/images.log"], TOM =>[">>/home/tom/access.log"], JON =>[">>/home/jon/access.log"], CGI =>[">>/var/log/httpd/cgi.log"], CATCH =>[">>/var/log/httpd/access.log"] ); Flog::init(); sub flog{ print CGI if m% /cgi-bin/%; print TOM if m%tom\.com$%; print JON if m%jon\.net$%; # Return if you do not wish to duplicate data across logs return print IMAGES if m%\.(gif|jpg|png) %; print CATCH; } 1;