2.3.92 LogFormat
LogFormat defines the log format.
Description
LogFormat defines the log format. When you specify a label name for Logformat, if you specify this label name in CustomLog, the log can be output in the format specified for Logformat.
Note that if you specify %A or %a for the format, IPv6 addresses can also be output. In addition, if you specify %h or %V for the format, the host names that correspond to IPv6 addresses or the IPv6 addresses can be output.
To specify this directive for multiple times, you need to attach a label name.
Syntax
LogFormat "format" [label_name]
Locations where it can be written
httpsd.conf and <VirtualHost>
Example
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