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.
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
-
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 associatedLogStream.- Parameters:
logStream- TheLogStreamthat produced the original log line.line- The original log line.- Returns:
- The mutated (possibly modified or filtered) log line. May be
nullif the mutator should be ignored.
-