Disable localhost_access logging in Digitool
Overview
In Digitool JBOSS generates an access log daily named like this; localhost_access_log.2015-11-16.log in the jb_log path.
If these logs are causing disk space issues, you may wish to set up a scheduled task to delete older logs. If the size is still an issue you may wish to disable access logging altogether.
To Disable Logging..
First Step - Edit xml file
Access logging can be disabled by editing the server.xml using the vi editor:
>jb_deploy
>cd jbossweb-tomcat.sar
>vi server.xml
To disable logging, comment out this section in server.xml by adding the BOLD highlighted lines
<!-- Access logger -->
<!-- Access logging disabled
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="localhost_access_log." suffix=".log"
pattern="common" directory="${jboss.server.home.dir}/log"
resolveHosts="false" />
-->
Second Step - Restart JBOSS
JBOSS must be restarted in order for the configuration to take effect:
To shut down JBOSS
$jdtlh_bin/jboss_shutdown.sh
To start JBOSS
$jdtlh_bin/jboss_startup.sh
(This will result in a minute or two of downtime)
Warning
There is no facility to change the logging level. Logging is either "on" or "off".