Location: PHPKode > projects > Obsessive Website Statistics > ows/include/log_formats.php
<?php
/*

	Definitions of various apache log formats 

	Yes, I AM using Referrer instead of Referer. I don't care if it made it into the HTTP
	standard.. they should have corrected it. I'd rather spell it right. :) 
	
	There are quirks for each standard, so there are special parameters embedded in some of
	the logfile formats to make it work nicely with OWS. Please feel free to send me your
	logfile format strings, and I'll include them in the next release of OWS. Thanks.
	
*/

// Combined Apache Log Format
define("APACHE_LOG_COMBINED",'%h %l %u %t \"%r\" %>s %b \"%{Referrer}i\" \"%{User-Agent}i\"');
// Common Apache Log Format
define("APACHE_LOG_COMMON",'%h %l %u %t \"%r\" %>s %b');
// Script Apache Log Format
define("APACHE_LOG_SCRIPT",'%v %h %l %u %t \"%r\" %>s %b %T');
// VHOST Apache Log Format (gentoo specific, does this actually work?)
define("APACHE_LOG_VHOST",'%v %h %l %u %t \"%r\" %>s %b \"%{Referrer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e');

// Log file format for 1and1 internet hosting provider
// The information provided at http://faq.1and1.com/miscellaneous/9.html is incorrect AFAIK
define("APACHE_LOG_1AND1",'%h %l %u %t \"%r\" %s %b %v \"%{Referrer}i\" \"%{User-Agent}i\" \"%j\"');


// IIS Logfile formats
// it may look wrong, but it seems to work
define('IIS6_LOG_FORMAT','%{IIS_TIME_FORMAT}t %P %V %A %m %U %q %p %u %a %H %{UD-User-Agent}i %{Cookie}i %{Referrer}i %v %s %N %N %b %N %T');

// TODO: Add more log formats!

?>
Return current item: Obsessive Website Statistics