Interface LoggingFilter.Builder

    • Method Detail

      • filters

        LoggingFilter.Builder filters​(Collection<Filter> filters)

        The filters that you want to apply to the logs.

        Parameters:
        filters - The filters that you want to apply to the logs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        LoggingFilter.Builder filters​(Filter... filters)

        The filters that you want to apply to the logs.

        Parameters:
        filters - The filters that you want to apply to the logs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        LoggingFilter.Builder filters​(Consumer<Filter.Builder>... filters)

        The filters that you want to apply to the logs.

        This is a convenience method that creates an instance of the Filter.Builder avoiding the need to create one manually via Filter.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #filters(List).

        Parameters:
        filters - a consumer that will call methods on Filter.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #filters(java.util.Collection)
      • defaultBehavior

        LoggingFilter.Builder defaultBehavior​(String defaultBehavior)

        Default handling for logs that don't match any of the specified filtering conditions.

        Parameters:
        defaultBehavior - Default handling for logs that don't match any of the specified filtering conditions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterBehavior, FilterBehavior
      • defaultBehavior

        LoggingFilter.Builder defaultBehavior​(FilterBehavior defaultBehavior)

        Default handling for logs that don't match any of the specified filtering conditions.

        Parameters:
        defaultBehavior - Default handling for logs that don't match any of the specified filtering conditions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterBehavior, FilterBehavior