@Internal public class LogMutatorStack extends Object implements LogMutator
Constructor and Description |
---|
LogMutatorStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(LogMutator interceptor)
Adds a new interceptor to stack
|
void |
clear()
Removes all interceptors from stack
|
LogEntry |
mutate(LogEntry logEntry)
Method invoked whenever a new log entry is logged
|
LogEntry |
mutateError(LogEntry logEntry)
Method invoked whenever a new error log entry is logged
|
void |
remove(LogMutator interceptor)
Removes an interceptor from stack
|
public void clear()
public void add(@NotNull LogMutator interceptor)
interceptor
- the interceptor to addpublic void remove(@Nullable LogMutator interceptor)
interceptor
- the interceptor to removepublic LogEntry mutate(@NotNull LogEntry logEntry)
LogMutator
mutate
in interface LogMutator
public LogEntry mutateError(@NotNull LogEntry logEntry)
LogMutator
mutateError
in interface LogMutator
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.