dev@glassfish.java.net

[V3] how to turn on access log ?

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Sun, 06 Apr 2008 11:39:10 -0700

I tried to turn on access logging to __asadmin, here is how domain.xml
looks like:

<virtual-server default-web-module="" state="on"
hosts="${com.sun.aas.hostName}"
log-file="${com.sun.aas.instanceRoot}/logs/server.log" id="__asadmin"
http-listeners="admin-listener">
          <property value="${com.sun.aas.instanceRoot}/docroot"
name="docroot" />
          <property value="${com.sun.aas.instanceRoot}/logs/access"
name="accesslog" />
          <property value="false" name="sso-enabled" />
          <property value="true" name="accessLoggingEnabled" />
        </virtual-server>

After i restart the server, i can see the file
__asadmin_access_log.2008-04-06.txt created under
domains/domain1/logs/access
however, the file size is always zero, and nothing is recorded in the file.

Is access logging supported in TP2 ? Is this a known issue ? Or do i
need to do something extra to trigger the logging ?

thanks
Anissa