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 boolean
acceptMessage(LogMessage message, boolean lastMessageInParent)
Called if simple log message appeared.protected List<LogMessage>
getListForStoringMessages(int maxImportantListSize)
Returns list for storing log messagesLogMessage
getOverflowMessage()
List<LogMessage>
postProcess(List<LogMessage> filteredMessages)
Called before returning result.protected void
rememberStopLoadingMessage(List<LogMessage> filtered, LogMessage stopLoadingMessage)
protected boolean
shouldCheckMaxListSize()
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:LogMessageFilter
Called if simple log message appeared.- Specified by:
acceptMessage
in 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:LogMessageFilter
Called before returning result.- Overrides:
postProcess
in classLogMessageFilter
- Parameters:
filteredMessages
- filtered messages- Returns:
- post processed messages
-
rememberStopLoadingMessage
protected void rememberStopLoadingMessage(@NotNull List<LogMessage> filtered, @NotNull LogMessage stopLoadingMessage)
- Overrides:
rememberStopLoadingMessage
in classLogMessageFilter
-
getOverflowMessage
@Nullable public LogMessage getOverflowMessage()
-
shouldCheckMaxListSize
protected boolean shouldCheckMaxListSize()
Description copied from class:LogMessageFilter
Returns true if should check maximum list size, false otherwise- Overrides:
shouldCheckMaxListSize
in classLogMessageFilter
- Returns:
- true if should check maximum list size, false otherwise
-
getListForStoringMessages
@NotNull protected List<LogMessage> getListForStoringMessages(int maxImportantListSize)
Description copied from class:LogMessageFilter
Returns list for storing log messages- Overrides:
getListForStoringMessages
in classLogMessageFilter
- Parameters:
maxImportantListSize
- maximal important list size- Returns:
- list for storing log messages
-
-