code: public boolean isErrorEnabled()
      {
          if (IS12)
          {
              return getLogger().isEnabledFor(Level.ERROR);
          }
          return getLogger().isEnabledFor(Level.ERROR);
      }
docs: Check whether the Log4j Logger used is enabled for <code>ERROR</code>
  priority.