To enable http level request/response logs in Application Server (AS), we can use the Access_Log_Valve
which is provided in Tomcat 7.
To enable logging, you have to put the following XML xml element under under /Server/Service
/Engine/Host/
in the
element in {WSO2AS_HOME}/
repositoryr
epository/conf/tomcat/catalina
-server.xml
file and and restart the AS server.
Code Block |
---|
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="${carbon.home}/repository/logs" prefix="localhost_access_log_sample." suffix=".log" pattern="%{xxx}i %{xxx}o" resolveHosts="false"/> |
...