code: public void error(String s) {
          if (isEnabled() && isErrorEnabled()) {
              dispatchLogMessage(new LogEvent(this, LogEvent.ERROR_TYPE, s));
          }
      }
docs: Simple method for logging a single error message.