users@glassfish.java.net

How is Exception logging supposed to work?

From: <glassfish_at_javadesktop.org>
Date: Sun, 10 Feb 2008 10:51:08 PST

Hi!
I have two stateless session beans A and B, B is injected into A.
If B throws an exception it automatically appears in the server.log as INFO.
I catch the exception in A and log it as SEVERE, so every exception is logged several times, one with the correct log level and one with a wrong log level.
The multiple logging of exception makes the server log very hard to read.

How is this supposed to be configures / coded to have useful logging files.

btw: is there a tool for viewing ther server.log which clips away useless lines?

Thanks,
    - stephan
[Message sent by forum member 'iceandfire' (iceandfire)]

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