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