public static class SwingTreeLogger.LogEvent extends Object
Modifier and Type | Field and Description |
---|---|
SwingTreeLogger |
childLogger
Logger for this event.
|
String |
exceptionDetail
Detail message for the exception (ie, the stack trace).
|
String |
exceptionName
The name of the exception, or null if none.
|
TreeLogger.HelpInfo |
helpInfo
Extra info for this message, or null if none.
|
int |
index
Index within the parent logger.
|
boolean |
isBranchCommit
True if this is a branch commit.
|
String |
message
Log message.
|
Date |
timestamp
Timestamp of when the message was logged.
|
TreeLogger.Type |
type
Log level of this message.
|
Constructor and Description |
---|
LogEvent(SwingTreeLogger logger,
boolean isBranchCommit,
int index,
TreeLogger.Type type,
String message,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
Create a log event.
|
Modifier and Type | Method and Description |
---|---|
String |
getFullText() |
TreeLogger.Type |
getInheritedPriority() |
void |
setDisplayProperties(JLabel treeLabel)
Set the properties of a label to match this log entry.
|
String |
toString() |
boolean |
updateInheritedPriority(TreeLogger.Type childPriority)
Update this log event's inherited priority, which is the highest priority
of this event and any child events.
|
public final SwingTreeLogger childLogger
public final String exceptionDetail
public final String exceptionName
public final TreeLogger.HelpInfo helpInfo
public final int index
public final boolean isBranchCommit
public final String message
public final Date timestamp
public final TreeLogger.Type type
public LogEvent(SwingTreeLogger logger, boolean isBranchCommit, int index, TreeLogger.Type type, String message, Throwable caught, TreeLogger.HelpInfo helpInfo)
logger
- isBranchCommit
- index
- type
- message
- caught
- helpInfo
- public String getFullText()
public TreeLogger.Type getInheritedPriority()
public void setDisplayProperties(JLabel treeLabel)
treeLabel
- label to set properties for.public boolean updateInheritedPriority(TreeLogger.Type childPriority)
childPriority
- Copyright © 2018. All rights reserved.