access log可以記錄所有與JBoss的通訊狀態
You can enable access log in JBoss A7 by adding "access-log" element in subsystem of web as shown below
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
<access-log pattern="%a %t %H %p %U %s " >
<directory relative-to="jboss.server.log.dir" />
</access-log>
</virtual-server>
</subsystem>
To get more information regaring the pattern you can have a look at the link : http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access_Log_Valve/Attributes
If you want to enable seprate access log for individual applications you can follow below link
Topic: Fetching Client IP Address and Header information in JBoss AS7 access log
沒有留言:
張貼留言