code: public static void error(Throwable t) {
          if (level.ordinal() >= Level.ERROR.ordinal())
              singleton.error(null, t, loggerName());
      }
docs: print error level log of the exception message with stacktrace.