title: Log4j disable logging for a class inside Spring.jar
body: <p>I have an application using Spring, so I have spring.jar as a 3rd party library. 
  I'm using log4j for logging and I've set the root level as INFO. Here is my log4j.properties:</p>
  
  <pre><code>log4j.rootCategory=INFO
  log4j.logger.org.springframework.context.support.ResourceBundleThemeSource=WARN
  log4j.logger.org.springframework.ui.context.support.ResourceBundleThemeSource=WARN
  log4j.appender.Console=org.apache.log4j.ConsoleAppender
  log4j.appender.Console.layout=org.apache.log4j.PatternLayout
  log4j.appender.Console.layout.ConversionPattern=%-5p - %m%n
  </code></pre>
  
  <p>As you can see, I've tried to set a specific class' (which is inside spring jar) logging level. However, it keeps logging as:</p>
  
  <pre><code>[1/7/14 11:53:35:150 EET] 0000003b ResourceBundl I org.springframework.ui.context.support.ResourceBundleThemeSource getTheme Theme created: name 'theme', basename [theme]
  </code></pre>
  
  <p>so it is creating unnecessary text data and exaggerating my log file.</p>
  
  <p>As far as I can see, the log level is INFO inside ResourceBundleMessageSource class.</p>
  
  <p>So, why it keeps logging even if I've set the level to WARN?</p>
  
  <p>Thanks!</p>