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 the /Server/Service
/Engine/Host/
directory
element in the {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"/> |
...