public interface TailSplitter
Modifier and Type | Method and Description |
---|---|
Date |
determineDate(List<String> raw)
Read the message and find the date when the message was submitted.
|
ExceptionDescriptor |
determineException(List<String> raw)
Read the message and try to identify an exception stack trace within.
|
String |
determineLogger(List<String> raw)
Messages in the log can contain information as to what logged them.
|
MessageSeverity |
determineSeverity(List<String> raw)
Read the message and try to find its severity.
|
MessageType |
determineType(List<String> raw)
Read the message and try to find its type.
|
boolean |
isStartingLine(String line)
Whether or not this particular line from the log starts a new log
message.
|
String |
stripOfMetadata(String line)
Take a line from the log and attempt to strip it of metadata, such as
severity, type and date.
|
Date determineDate(List<String> raw)
raw
- Raw, untreated lines of the message.ExceptionDescriptor determineException(List<String> raw)
raw
- Raw, untreated lines of the message.String determineLogger(List<String> raw)
raw
- Raw, untreated lines of the message.MessageSeverity determineSeverity(List<String> raw)
raw
- Raw, untreated lines of the message.MessageSeverity.UNKNOWN
otherwise.MessageType determineType(List<String> raw)
raw
- Raw, untreated lines of the message.MessageType.LOG
if
undetermined.boolean isStartingLine(String line)
Message
being
produced and possibly stored.line
- Line from the log.Copyright © 2015. All rights reserved.