Skip to content

Instantly share code, notes, and snippets.

@nowelium
Created October 12, 2010 16:38
Show Gist options
  • Save nowelium/622486 to your computer and use it in GitHub Desktop.
Save nowelium/622486 to your computer and use it in GitHub Desktop.
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
BufferedLogs On
#ErrorLog /var/log/httpd/error_log
ErrorLog "|logger -p local0.err -t httpd"
LogLevel warn
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
#CustomLog logs/access_log common
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent
#CustomLog /var/log/httpd/access_log combined
CustomLog "|logger -p local0.info -t httpd" combined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment