Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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}/repositoryrepository/conf/tomcat/catalina-server.xmlfile 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"/>

...