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
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionvoidMethod invoked whenever a new log entry is loggedvoidinterceptError(@NotNull LogEntry logEntry) Method invoked whenever a new error log entry is loggedstatic ErrorMemorisingInterceptorCreates interceptor that stores the most recentSystemProperty.LOG_LINES_FOR_NOTIFICATIONSlines 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_NOTIFICATIONSmost 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_NOTIFICATIONSlines it receives. -
intercept
Description copied from interface:LogInterceptorMethod invoked whenever a new log entry is logged- Specified by:
interceptin interfaceLogInterceptor
-
interceptError
Description copied from interface:LogInterceptorMethod invoked whenever a new error log entry is logged- Specified by:
interceptErrorin interfaceLogInterceptor
-
getErrorStringList
-