JBoss Community

Access logging in JBoss 7

created by Willem Noorduin in Beginner's Corner - View the full discussion

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>

 

&lt;/pre&gt;

 

 

In my standalone-full-ha.xml, but I still get no access_log in de jboss.server.log.dir directory. What do I do wrong here ?

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community