title: Specify only some packages to have debug output
body: <p>I want to log some behavior of my web application which also implements hibernate, spring and so on.  When I tried to implement log4j logger from apache I had some troubles.</p>
  
  <p>When I turn on logger it is also debugging hibernate and spring which I don't want. I tried to configure properties file to the specify the package of my project but it does not work.</p>
  
  <p>Here is my code of property file: </p>
  
  <pre><code>log4j.rootCategory=ERROR, O
  log4j.category.com.my.package= DEBUG, FILE, O
  log4j.appender.FILE=org.apache.log4j.RollingFileAppender
  log4j.appender.FILE.File=log/logger.log
  log4j.appender.O=org.apache.log4j.ConsoleAppender
  .... and some layout
  </code></pre>
  
  <p>It works when I switch <code>rootCategory = DEBUG</code> but it is also debugging the hibernate and spring as I said.</p>