Access logs are very useful when you want to see a list of all the requests processed by a server. For Apache-based cartridges, access logs are enabled by default, but you will have to enable it manually in JBoss-based cartridges. In this recipe, you will learn how to enable the access logs for JBoss cartridges.
This recipe will pick up where we left off in the Working with JBoss application logs recipe.
Perform the following steps to enable the access logs:
standalone.xmlfile inside the
.openshift/configdirectory in your favorite editor.
urn:jboss:domain:web:1.5subsystem with the one shown in the following code:
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" ...