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