I was also thinking that you might consider putting a Log message immediately following the BasicConfigurator.configure() call. If you receive this message to the console, then something else is re-initing Log4j.
BTW, 2 things about your code: * The BasicConfigurator will automatically add and configure a Console appender, should be no need to add one yourself. * Appenders have an activateOptions() method that should be called after all setters properties have been set, if you create an appender manually. cheers, Paul > public class SomeTestSuite extends TestSuite { > > ... > public static void main(String[] args) { > ConsoleAppender consoleAppender=null; > > consoleAppender=new ConsoleAppender(); > BasicConfigurator.configure(); > Logger.getRootLogger().addAppender(consoleAppender); > > Logger.getLogger(SomeClass.class).addAppender(consoleAppender); > > junit.swingui.TestRunner.run(SomeTestSuite.class); > } > ... > } > </code-snippet> > > Why does this error occur despite that fact that I explicitly add > an appender to the Logger of SomeClass? > > How can solve this problem? > > TIA > > Dimitri Pissarenko > > PS: I'm using log4j 1.2.8 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]