You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Nathaniel G. Auvil" <na...@yahoo.com> on 2002/07/22 17:05:42 UTC

looping console appender

hi all.

If i use the following lines of code under log4j 1.2.2

Logger.getRootLogger().removeAllAppenders();
Logger.getRootLogger().addAppender( new ConsoleAppender( new PatternLayout( "%12.12d{ABSOLUTE}
[%3.3t] [%c{1}] %m%n" ) ) );

i get the following error message and jboss dies.

ERROR: invalid console appender config detected, console stream is looping


I even tried: 
BasicConfigurator.resetConfiguration();
BasicConfigurator.configure( new ConsoleAppender( new PatternLayout( "%12.12d{ABSOLUTE} [%3.3t]
[%c{1}] %m%n" ) ) );

and got the same thing.

What am i doing wrong?





__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>