tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <remy.mauche...@gmail.com>
Subject Re: JULI ConsoleHandler custom formatter
Date Wed, 02 Nov 2005 19:11:13 GMT
On 11/2/05, Johnny Tolliver <jxt@ornl.gov> wrote:
> I use JULI for my servlet logging and am having trouble defining a custom
> formatter for console handler output. An excerpt of my logging.properties file
> is this:
>
>     handlers=org.apache.juli.FileHandler,java.util.logging.ConsoleHandler
>     .level=INFO
>
>     org.apache.juli.FileHandler.formatter = mypackage.MyFormatter
>     java.util.logging.ConsoleHandler.formatter = mypackage.MyFormatter
>
> As expected, java.util.logging.Logger output goes to both the console handler
> and the file handler, but only the file handler output uses MyFormatter. It
> seems that console hanlder output is always formatted with SimpleFormatter no
> matter what.
>
> Is that expected behavior? Can it be fixed? Thanks.

java.util.logging.ConsoleHandler will only load formatter classes from
the system classloader.

--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message