Package org.apache.log4j.chainsaw
Class LoggingEventWrapper
java.lang.Object
org.apache.log4j.chainsaw.LoggingEventWrapper
Wrap access to a LoggingEvent. All property updates need to go through this object and not through the wrapped logging event,
since the properties are shared by two views of the same backing LoggingEvent, and loggingEvent itself creates a copy of passed-in properties..
Property reads can be made on the actual LoggingEvent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Color
private Color
private static final int
private boolean
(package private) Map
private int
private final org.apache.log4j.spi.LoggingEvent
private int
private int
private boolean
private LoggingEventWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingEventWrapper
(LoggingEventWrapper loggingEventWrapper) LoggingEventWrapper
(org.apache.log4j.spi.LoggingEvent loggingEvent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
evaluateSearchRule
(org.apache.log4j.rule.Rule searchRule) org.apache.log4j.spi.LoggingEvent
int
int
int
hashCode()
boolean
boolean
removeProperty
(String propName) void
setDisplayed
(boolean b) void
setMarkerHeight
(int markerHeight) void
setMsgHeight
(int msgHeight) void
setPreviousDisplayedEventTimestamp
(long previousDisplayedEventTimeStamp) void
setProperty
(String propName, String propValue) toString()
void
updateColorRuleColors
(Color backgroundColor, Color foregroundColor)
-
Field Details
-
loggingEvent
private final org.apache.log4j.spi.LoggingEvent loggingEvent -
DEFAULT_HEIGHT
private static final int DEFAULT_HEIGHT- See Also:
-
colorRuleBackground
-
colorRuleForeground
-
markerHeight
private int markerHeight -
msgHeight
private int msgHeight -
id
private int id -
searchMatch
private boolean searchMatch -
eventMatches
Map eventMatches -
syncWrapper
-
displayed
private boolean displayed
-
-
Constructor Details
-
LoggingEventWrapper
public LoggingEventWrapper(org.apache.log4j.spi.LoggingEvent loggingEvent) -
LoggingEventWrapper
-
-
Method Details
-
getLoggingEvent
public org.apache.log4j.spi.LoggingEvent getLoggingEvent() -
setProperty
-
removeProperty
-
getPropertyKeySet
-
updateColorRuleColors
-
evaluateSearchRule
public void evaluateSearchRule(org.apache.log4j.rule.Rule searchRule) -
getSearchMatches
-
getForeground
-
getBackground
-
getColorRuleBackground
-
getColorRuleForeground
-
isSearchMatch
public boolean isSearchMatch() -
setMarkerHeight
public void setMarkerHeight(int markerHeight) -
getMarkerHeight
public int getMarkerHeight() -
setMsgHeight
public void setMsgHeight(int msgHeight) -
getMsgHeight
public int getMsgHeight() -
setDisplayed
public void setDisplayed(boolean b) -
setPreviousDisplayedEventTimestamp
public void setPreviousDisplayedEventTimestamp(long previousDisplayedEventTimeStamp) -
isDisplayed
public boolean isDisplayed() -
equals
-
hashCode
public int hashCode() -
toString
-