users@glassfish.java.net

Re: How do you change the server.log format?

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Feb 2008 12:08:27 PST

You can't. Please file a bug if you need to parse the server.log which is an internal interface of
the product.

But I agree, server.log is a boundary line case. You, as a user, might want to change the format and
hence the request for a bug.

Is it the noise you are concerned about? Does it affect readability of the log (which it arguably does) to the extent that you can't find out what the problem is?

An alternate way is not to look at server.log at all. There is a LogMBean in GlassFish V2 [https://glassfish.dev.java.net/nonav/javaee5/amx/javadoc/com/sun/appserv/management/ext/logging/Logging.html]
that lets you listen to the log handler and you can then filter out what you want.

Just an option.

- Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=260006