title: log debug enabled check in java
body: <p>What is the point of having the if statement here? The  severity level can be changed in log4j.xml config file. If the severity level is debug, it'll log the debug message, else it will not. </p>
  
  <p>What is the significance of the if statement below?</p>
  
  <pre><code>   if (log.isDebugEnabled())
      {
          log.debug("I am logging something");
      }
  </code></pre>