code: public void error(Throwable error, Map<String, Object> custom) {
      log(error, custom, null, Level.ERROR);
    }
docs: Record an error with extra information attached.
  @param error the error
  @param custom the extra information