Re: [PATCH] Polish log formats

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Tue, 30 Nov 2010 18:39:43 +0100

tis 2010-11-30 klockan 03:25 +1300 skrev Amos Jeffries:

> So could you explain those condition please? It's not clear from the
> code that they did anything beyond logging at the end of header parsing.
> Or do you mean that by being done there they logged multiple lines per
> request?

Checking.. was some years since I looked at this while doing the
log_format stuff.

Both only logs if the corresponding header is in the request. And yes,
this can be simulated by using an acl for the condition.

useragent_log translates to

acl has_useragent useragent .
log_format useragentlog ....
access_log /path/to/file useragentlog has_useragent

and similar for referer_log using referer instead of useragent.

Regards
Henrik
Received on Tue Nov 30 2010 - 17:39:49 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 30 2010 - 12:00:05 MST