I have tried uncomment the valve line in the server.xml. The uncommented lines are
You have selected the "common" pattern ; you need to specify a custom pattern like the one shown below. The "%u" variable stands for "authenticated user". The link below lists all the other variables you can use.
http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="access." suffix=".log"
pattern="%h %l %u %t '%r' %s %b"
resolveHosts="false"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="combined" resolveHosts="false"/>
Would that do the trick as well ?