title: Is there a need to do a if(log.isDebugEnabled()) { ... } check?
body: <p>is there a need to do an explicit if(log.isDebugEnabled()) { ... }  check?</p>
  
  <p>I mean i have seen some post mentioning that log.debug("something") does an implicit call to see if debug mode logging has been enabled, before it does the logging. Am i missing something or is there an intermediary step that is to be performed before this is used?</p>
  
  <p>Thanks!</p>
  
  <pre><code>log.debug("ResultSet rs is retrieved from OracleTypes");
  </code></pre>
  
  <p>vs </p>
  
  <pre><code>if(log.isDebugEnabled()){
       log.debug("ResultSet rs is retrieved from OracleTypes");
  }
  </code></pre>
  
  <p>Edit: 
  Did a write up on this:
  <a href="http://java.sg/whether-to-do-a-isdebugenabled-checking-before-printing-out-your-log-statement/">http://java.sg/whether-to-do-a-isdebugenabled-checking-before-printing-out-your-log-statement/</a></p>