users@glassfish.java.net

Re: Logging in GF 2

From: Marc Ende <mlists_at_e-beyond.de>
Date: Thu, 19 Jul 2007 09:29:24 +0200

Hello Joe,

thanks for the example.

Shevland, Joe schrieb:
> I use Commons Logging and underneath that just the JDK logging atm (I
> also had problems with Log4J not releasing resources correctly, or me
> not releasing resources correctly, one of them), and as part of system
> startup also attach some of my own handlers so I can log to files
> elsewhere. The GF ones I found too verbose and there's no way to
> configure them afaik (thought I had a good sed/tail pipe working for a
> while but ended up culling out too much); the log definition class below
> just holds a logger name and file name pattern to use, and the custom
> SystemLogFormatter just logs how I want it:
>
Can you give me a hint (to docu for example) where to register these
handlers? Should I register them on
"ear-start" or the whole "glassfish-system-startup"?

yours

Marc