On Sep 19, 2011, at 2:17 PM, William A. Rowe Jr. wrote:
> 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.
That's LogFormat, not ErrorLogFormat. It's similar, but different, in
ErrorLogFormat
In ErrorLogFormat, you can have '-', '+', or a number from 1 to 15.
--
Rich Bowen
[email protected]
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]