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