Class LogMutatorStack

    • Constructor Detail

      • LogMutatorStack

        public LogMutatorStack()
    • 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 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