Class LogMutatorStack
- java.lang.Object
-
- com.atlassian.bamboo.build.logger.LogMutatorStack
-
- All Implemented Interfaces:
LogMutator
@Internal public class LogMutatorStack extends Object implements LogMutator
-
-
Constructor Summary
Constructors Constructor Description LogMutatorStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(@NotNull LogMutator interceptor)
Adds a new interceptor to stackvoid
clear()
Removes all interceptors from stackLogEntry
mutate(@NotNull LogEntry logEntry)
Method invoked whenever a new log entry is loggedLogEntry
mutateError(@NotNull LogEntry logEntry)
Method invoked whenever a new error log entry is loggedvoid
remove(@Nullable LogMutator interceptor)
Removes an interceptor from stack
-
-
-
Method Detail
-
clear
public void clear()
Removes all interceptors from stack
-
add
public void add(@NotNull @NotNull LogMutator interceptor)
Adds a new interceptor to stack- Parameters:
interceptor
- the interceptor to add
-
remove
public void remove(@Nullable @Nullable LogMutator interceptor)
Removes an interceptor from stack- Parameters:
interceptor
- the interceptor to remove
-
mutate
public LogEntry mutate(@NotNull @NotNull LogEntry logEntry)
Description copied from interface:LogMutator
Method invoked whenever a new log entry is logged- Specified by:
mutate
in interfaceLogMutator
-
mutateError
public LogEntry mutateError(@NotNull @NotNull LogEntry logEntry)
Description copied from interface:LogMutator
Method invoked whenever a new error log entry is logged- Specified by:
mutateError
in interfaceLogMutator
-
-