Hi,
I'm trying to get squid to log a few more fields in the access log.
Basically, I want to write logs in 'Combined Log Format' instead of
'Common Log Format'. This means I need to add two more fields: referrer
and user-agent.
The accessLogLog() function receives only a pointer to an AccessLogEntry
structure, which doesn't contain information about the referrer and user
agent, but contains the raw request header. The obvious solution is to
use the functions from HttpHeader.c to parse the raw header locally and
get the referrer and user-agent.
Can you please tell me if the request header is already parsed at the
moment when accessLogLog() is called? If it is already parsed, I only
have to pass it somehow to the logging functions. This would be much
better (faster and memory cost effective) than parsing it again.
Best regards,
Radu Rendec
P.S. Please CC to my address, I'm not subscribed to the list.
Received on Sun Sep 29 2002 - 05:31:15 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:37 MST