Class LogMutatorStack

java.lang.Object
com.atlassian.bamboo.build.logger.LogMutatorStack
All Implemented Interfaces:
LogMutator

@Internal public class LogMutatorStack extends Object implements LogMutator
  • Constructor Details

    • LogMutatorStack

      public LogMutatorStack()
  • Method Details

    • 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 interface LogMutator
    • 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 interface LogMutator