Minimal logging with Apache

Access log

Using this log format, Apache will just save the date, time, HTTP method, requested page, HTTP version, status code, and the amount of delivered data (read: sent bytes) for each access:

LogFormat "127.0.0.1 - - %t \"%r\" %>s %b" common
You must configure each logfile to use this common format, e.g.:
CustomLog "/var/log/httpd-access.log" common

Error log

As of Apache 2.4, you can also set a custom format for the error log:

ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P] %7F: %E: [vhost %v] %M"
Using this format, the error log will only contain