Class DefaultLogMessageFilter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.LogMessageFilter
-
- jetbrains.buildServer.serverSide.buildLog.DefaultLogMessageFilter
-
public class DefaultLogMessageFilter extends LogMessageFilter
This filter accepts all messages with priority WARNING, ERROR and FAILURE, and messages from incomplete blocks. All messages are returned with their parents in order of appearance in the build log.
-
-
Constructor Summary
Constructors Constructor Description DefaultLogMessageFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptMessage(LogMessage message, boolean lastMessageInParent)Called if simple log message appeared.protected List<LogMessage>getListForStoringMessages(int maxImportantListSize)Returns list for storing log messagesLogMessagegetOverflowMessage()List<LogMessage>postProcess(List<LogMessage> filteredMessages)Called before returning result.protected voidrememberStopLoadingMessage(List<LogMessage> filtered, LogMessage stopLoadingMessage)protected booleanshouldCheckMaxListSize()Returns true if should check maximum list size, false otherwise-
Methods inherited from class jetbrains.buildServer.serverSide.buildLog.LogMessageFilter
acceptBlockMessage, appendMessageWithParents, filter, getStopLoadingMessage, rememberMessage
-
-
-
-
Method Detail
-
acceptMessage
public boolean acceptMessage(@NotNull LogMessage message, boolean lastMessageInParent)Description copied from class:LogMessageFilterCalled if simple log message appeared.- Specified by:
acceptMessagein classLogMessageFilter- Parameters:
message- message to filterlastMessageInParent- true if this is the last message in parent block- Returns:
- true if message accepted and false if message should be removed. If message is accepted then all its parents are accepted too.
-
postProcess
@NotNull public List<LogMessage> postProcess(@NotNull List<LogMessage> filteredMessages)
Description copied from class:LogMessageFilterCalled before returning result.- Overrides:
postProcessin classLogMessageFilter- Parameters:
filteredMessages- filtered messages- Returns:
- post processed messages
-
rememberStopLoadingMessage
protected void rememberStopLoadingMessage(@NotNull List<LogMessage> filtered, @NotNull LogMessage stopLoadingMessage)- Overrides:
rememberStopLoadingMessagein classLogMessageFilter
-
getOverflowMessage
@Nullable public LogMessage getOverflowMessage()
-
shouldCheckMaxListSize
protected boolean shouldCheckMaxListSize()
Description copied from class:LogMessageFilterReturns true if should check maximum list size, false otherwise- Overrides:
shouldCheckMaxListSizein classLogMessageFilter- Returns:
- true if should check maximum list size, false otherwise
-
getListForStoringMessages
@NotNull protected List<LogMessage> getListForStoringMessages(int maxImportantListSize)
Description copied from class:LogMessageFilterReturns list for storing log messages- Overrides:
getListForStoringMessagesin classLogMessageFilter- Parameters:
maxImportantListSize- maximal important list size- Returns:
- list for storing log messages
-
-