Class ErrorMemorisingInterceptor
java.lang.Object
com.atlassian.bamboo.build.logger.interceptors.ErrorMemorisingInterceptor
- All Implemented Interfaces:
LogInterceptor
,Serializable
Interceptor that remembers all the errors being reported in the build log.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates an interceptor that stores all data it receives.ErrorMemorisingInterceptor
(int limit) Creates interceptor that stores the most recent "limit" lines it receives. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method invoked whenever a new log entry is loggedvoid
interceptError
(@NotNull LogEntry logEntry) Method invoked whenever a new error log entry is loggedstatic ErrorMemorisingInterceptor
Creates interceptor that stores the most recentSystemProperty.LOG_LINES_FOR_NOTIFICATIONS
lines it receives.
-
Constructor Details
-
ErrorMemorisingInterceptor
public ErrorMemorisingInterceptor()Creates an interceptor that stores all data it receives. The amount of lines is bounded withSystemProperty.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. -
ErrorMemorisingInterceptor
public ErrorMemorisingInterceptor(int limit) Creates interceptor that stores the most recent "limit" lines it receives.
-
-
Method Details
-
newInterceptor
Creates interceptor that stores the most recentSystemProperty.LOG_LINES_FOR_NOTIFICATIONS
lines it receives. -
intercept
Description copied from interface:LogInterceptor
Method invoked whenever a new log entry is logged- Specified by:
intercept
in interfaceLogInterceptor
-
interceptError
Description copied from interface:LogInterceptor
Method invoked whenever a new error log entry is logged- Specified by:
interceptError
in interfaceLogInterceptor
-
getErrorStringList
-