docs: @PrivateApi
      public static ExceptionHandler logAllExceptions(final ILogger logger, final Level level) {
          if (logger.isLoggable(level)) {
              return new ExceptionHandler() {
                  @Override
                  public void handleException(Throwable throwable) {
                      logger.log(level, "Exception occurred", throwable);
                  }
              };
          }
          return IGNORE_ALL_EXCEPTIONS;
      }