Adding Log4J appenders programmatically
问题 Ok, so I have this stupid library I'm using (documentum DFC), which does a check to see if Logger.getRootLogger().getAllAppenders().hasMoreElements() == false , if so, it resets my rootLogger level to WARN , which destroys my logging after that. So in an effort to stop this, I'm attempting to add an appender to the root logger just to see if I can get it to stop doing that code. However when I call Logger.getRootLogger().addAppender(new ConsoleAppender()); that function is still coming up