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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to