httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <wr...@rowe-clan.net>
Subject Re: Documentation clarification: ErrorLogFormat
Date Mon, 19 Sep 2011 18:17:48 GMT
On 9/17/2011 9:56 PM, Rich Bowen wrote:
> In the documentation for the ErrorLogFormat directive, log format strings are given as,
for example, %...A
> 
> What does the ... signify?

Modifiers

Particular items can be restricted to print only for responses with specific HTTP status
codes by placing a comma-separated list of status codes immediately following the "%". For
example, "%400,501{User-agent}i" logs User-agent on 400 errors and 501 errors only. For
other status codes, the literal string "-" will be logged. The status code list may be
preceded by a "!" to indicate negation: "%!200,304,302{Referer}i" logs Referer on all
requests that do not return one of the three specified codes.

The modifiers "<" and ">" can be used for requests that have been internally redirected
to
choose whether the original or final (respectively) request should be consulted. By
default, the % directives %s, %U, %T, %D, and %r look at the original request while all
others look at the final request. So for example, %>s can be used to record the final
status of the request and %<u can be used to record the original authenticated user on
a
request that is internally redirected to an unauthenticated resource.


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message