Interface LogStreamMutator

All Known Implementing Classes:
BlurIPsMutator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LogStreamMutator
Functional interface for mutating log output lines before they are written to the output stream.

Implementations of this interface can be used to modify, format, or filter log lines dynamically based on the provided LogStream context.

Since:
3.5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    mutate(@NotNull LogStream logStream, @NotNull String line)
    Mutates the given log line based on the state or configuration of the associated LogStream.
  • Method Details

    • mutate

      @Nullable @Nullable String mutate(@NotNull @NotNull LogStream logStream, @NotNull @NotNull String line)
      Mutates the given log line based on the state or configuration of the associated LogStream.
      Parameters:
      logStream - The LogStream that produced the original log line.
      line - The original log line.
      Returns:
      The mutated (possibly modified or filtered) log line. May be null if the mutator should be ignored.