code: public boolean isDebugEnabled() {
          if (repository.isDisabled(Level.DEBUG_INT))
              return false;
          return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());
      }
docs: Check whether this category is enabled for the <code>DEBUG</code> Level.
  
  <p>
  This function is intended to lessen the computational cost of disabled log debug statements.
  
  <p>
  For some <code>cat</code> Category object, when you write,
  
  <pre>
  cat.debug(&quot;This is entry number: &quot; + i);
  </pre>
  
  <p>
  You incur the cost constructing the message, concatenatiion in this case, regardless of whether the message is logged or not.
  
  <p>
  If you are worried about speed, then you should write
  
  <pre>
  if (cat.isDebugEnabled()) {
  cat.debug(&quot;This is entry number: &quot; + i);
  }
  </pre>
  
  <p>
  This way you will not incur the cost of parameter construction if debugging is disabled for <code>cat</code>. On the other hand, if
  the <code>cat</code> is debug enabled, you will incur the cost of evaluating whether the category is debug enabled twice. Once in
  <code>isDebugEnabled</code> and once in the <code>debug</code>. This is an insignificant overhead since evaluating a category takes
  about 1%% of the time it takes to actually log.
  
  @return boolean - <code>true</code> if this category is debug enabled, <code>false</code> otherwise.