dev@glassfish.java.net

Re: [V3] how to turn on access log ?

From: <Jan.Luehe_at_Sun.COM>
Date: Mon, 07 Apr 2008 19:00:25 -0700

Hi Anissa,

Anissa Lam wrote:

>
> 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 ?


I don't think this is a known issue, but I was able to reproduce it.

The above configuration should be sufficient to enable access logging.

I'm looking into this. Can you please file a bug?

Thanks,


Jan

>
> thanks
> Anissa
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>