code: public void warn(Throwable t) {
          if (isEnabled() && isWarnEnabled()) {
              dispatchLogException(new LogEvent(this, LogEvent.WARN_TYPE, t));
          }
      }
docs: Simple method for logging a single warning exception.