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