the interface to all this is via a single directive:
CustomLog. This directive takes both a file name to log to and a custom format. For example, to log user-agents to a file called agents in the logs directory, you would use:
Code:
CustomLog logs/agent "%{user-agent}i"
Other useful log files can also be created. This next two directives create a referrer log and a log of language preferences of your clients:
Code:
CustomLog logs/referer "%{referer}i -> %U"
CustomLog logs/language "%{accept-language}i"
hth