Interface LoggingConfig


@ConfigMapping(prefix="stargate.api.logging") public interface LoggingConfig
Extra, Stargate related configuration for the logging.
  • Method Details

    • enabled

      @WithDefault("false") boolean enabled()
      Returns:
      If request info logging is enabled.
    • enabledTenants

      @WithDefault("all") Optional<Set<String>> enabledTenants()
      Returns:
      Set of tenants for which the request info should be logged.
    • enabledPaths

      @WithDefault("all") Optional<Set<String>> enabledPaths()
      Returns:
      Set of paths for which the request info should be logged.
    • enabledPathPrefixes

      @WithDefault("all") Optional<Set<String>> enabledPathPrefixes()
      Returns:
      Set of path prefixes for which the request info should be logged.
    • enabledErrorCodes

      @WithDefault("all") Optional<Set<String>> enabledErrorCodes()
      Returns:
      Set of error codes for which the request info should be logged.
    • enabledMethods

      @WithDefault("all") Optional<Set<String>> enabledMethods()
      Returns:
      Set of methods for which the request info should be logged.
    • requestBodyLoggingEnabled

      @WithDefault("false") boolean requestBodyLoggingEnabled()
      Returns:
      If request body logging is enabled.