code: public static void warn(Object warnMsg, Throwable t) {
          if (level.ordinal() >= Level.WARN.ordinal())
              singleton.warn(warnMsg, t, loggerName());
      }
docs: print warning level log of the the errMsg followed by the exception message with stacktrace.