embedded@glassfish.java.net

RE: [embedded] Logfiles Woes

From: Joey Jarosz <joey_at_cadence.com>
Date: Mon, 27 Apr 2009 15:29:23 -0700

Well, I spoke too soon. I just noticed that some exceptions getting
thrown by web-apps deployed by my embedded server are being put into
that mystery log file. Oh well...



-----Original Message-----
From: Joey Jarosz
Sent: Monday, April 27, 2009 8:31 AM
To: 'embedded_at_glassfish.dev.java.net'
Subject: RE: [embedded] Logfiles Woes

I think part of the problem is that there are indeed different logging
mechanisms in use at the same time; and that under "normal" conditions
they all just happen to right to the same server.log located at
${com.sun.aas.instanceRoot}/logs

But in my case, I change "log-root" used by my embedded application to
somewhere else. Somewhere in the code it appears to be hard-coded to
write to a server.log at the original location.

I have discovered that if I make sure ${com.sun.aas.instanceRoot}/logs
does not exist, the culprit trying to write to it silently fails and the
file does not get created - which makes me a happy camper for now.



-----Original Message-----
From: Jennifer Chou [mailto:Jennifer.Chou_at_Sun.COM]
Sent: Monday, April 27, 2009 3:34 AM
To: embedded_at_glassfish.dev.java.net
Subject: Re: [embedded] Logfiles Woes

I'm not sure why there are so many log files - I thought we only had 1
server.log file.

Not sure if this helps but I looked up the logger names spaces for web
container:
javax.enterprise.system.container.web
org.apache.catalina
org.apache.coyote
org.apache.jasper

http://docs.sun.com/app/docs/doc/820-4495/ablum?a=view

----- Original Message -----
From: Joey Jarosz <joey_at_cadence.com>
Date: Friday, April 24, 2009 6:57 pm
Subject: [embedded] Logfiles Woes
To: embedded_at_glassfish.dev.java.net


> I am trying to clean up the plethora of log files generated by
glassfish
> and my applications. In doing so I am setting the directory/name of
all
> the log files to a known location, but I still keep getting a
> "server_2009-04-24.log" file being created in the
> ${com.sun.aas.instanceRoot}/logs directory.
>
>
>
> I have already changed my domain.xml to point at a different
location
> - other log messages seem to go to the right place.
>
> I have called EFS.setLogFile() to another file - which seems to take
> care of its related log messages.
>
>
>
> The following messages, I think, are coming via the catalina
LoggerBase
> class, but I cannot figure out how to configure THAT logger.
>
>
>
> ------------------------------ Contents of that file
> -----------------------------------
>
> 2009-04-24 10:40:06 createObjectName with
> StandardEngine[com.sun.appserv].StandardHost[vserver-secure]
>
> 2009-04-24 10:40:06 preRegister with
> com.sun.appserv:type=Logger,host=vserver-secure
>
> 2009-04-24 10:40:07 createObjectName with
> StandardEngine[com.sun.appserv].StandardHost[vserver-apps]
>
> 2009-04-24 10:40:07 preRegister with
> com.sun.appserv:type=Logger,host=vserver-apps
>
>
>
> Any ideas?
>
> joey
>
>
>
> --------------------------------------------
> Joey Jarosz
>
> Senior Architect
>
> Chip Planning Solutions
>
> Cadence Design Systems, Inc.
> (408) 914-6269
>
>
> Need some IP? Check out www.chipestimate.com
> <
>
>
>

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