View Full Version : Pre-Configured Installation Log Files
clavigne
10-06-2006, 03:22 PM
I'm running the release candidate Pre-Configured Installation and I would like to log information about visitors to the server. Can someone help me to understand how I can activate basic logging (e.g., IP address, visited URL, etc.).
Thanks,
Chris
mbatchelor
10-09-2006, 05:06 AM
See the server.xml in the following location:
pci-dir/jboss/server/default/deploy/jbossweb-tomcat55.sar/server.xml
In there, you should find something like this:
<!-- Access logger -->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
prefix="localhost_access_log." suffix=".log"
pattern="common" directory="${jboss.server.home.dir}/log"
resolveHosts="false" />
-->
I believe if you uncomment that valve, you'll be getting access logs in no time.
Let us know,
Marc
clavigne
10-09-2006, 05:19 PM
Hi Marc,
When I uncommented that block, the server had an error. I dug around on the Jboss site and found the following class name - "org.apache.catalina.valves.AccessLogValve". When I used this value, the logging worked fine. I'm not sure why the original class name seems invalid, I didn't dig any deeper...
Chris