0 Replies Latest reply on Jul 27, 2012 7:43 AM by Willem Noorduin

    Access logging in JBoss 7

    Willem Noorduin Newbie

      In JBoss 5 you could switch on the access logging by uncommenting the appropriate Valve in the <profile-home>/deploy/jbossweb.sar/server.xml file. I cannot image that this function is vanished into JBoss 7. Reading some posts, I have put:

       

       

          <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"/>
              <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
              <virtual-server name="default-host" enable-welcome-root="true">
                  <alias name="localhost"/>
                  <access-log>
                          <directory relative-to="jboss.server.log.dir"/>
                          <profix>${jboss.access.log.file}_access_log.</prefix>
                          <suffix>.log</suffix>
                          <pattern>common</pattern>
                  </access-log>
              </virtual-server>
          </subsystem>