public class ErrorMemorisingInterceptor extends Object implements LogInterceptor
Constructor and Description |
---|
ErrorMemorisingInterceptor()
Creates an interceptor that stores all data it receives.
|
ErrorMemorisingInterceptor(int limit)
Creates interceptor that stores the most recent "limit" lines it receives.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getErrorStringList() |
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
|
static ErrorMemorisingInterceptor |
newInterceptor()
Creates interceptor that stores the most recent
SystemProperty.LOG_LINES_FOR_NOTIFICATIONS lines it receives. |
public ErrorMemorisingInterceptor()
SystemProperty.LOG_LINES_FOR_NOTIFICATIONS
most recent lines.
If you want to store large amounts of data in this interceptor (and you're aware that it may cause
out of memory errors on your instance and agents, use the bounded variant of the constructor.public ErrorMemorisingInterceptor(int limit)
public static ErrorMemorisingInterceptor newInterceptor()
SystemProperty.LOG_LINES_FOR_NOTIFICATIONS
lines it receives.public void intercept(@NotNull LogEntry logEntry)
LogInterceptor
intercept
in interface LogInterceptor
public void interceptError(@NotNull LogEntry logEntry)
LogInterceptor
interceptError
in interface LogInterceptor
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.