Package org.apache.log4j.chainsaw
Class LoggingEventWrapper
- java.lang.Object
-
- org.apache.log4j.chainsaw.LoggingEventWrapper
-
public class LoggingEventWrapper extends java.lang.Object
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
Fields Modifier and Type Field Description private java.awt.Color
colorRuleBackground
private java.awt.Color
colorRuleForeground
private static int
DEFAULT_HEIGHT
private boolean
displayed
(package private) java.util.Map
eventMatches
private int
id
private org.apache.log4j.spi.LoggingEvent
loggingEvent
private int
markerHeight
private int
msgHeight
private boolean
searchMatch
private LoggingEventWrapper
syncWrapper
-
Constructor Summary
Constructors Constructor Description LoggingEventWrapper(LoggingEventWrapper loggingEventWrapper)
LoggingEventWrapper(org.apache.log4j.spi.LoggingEvent loggingEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
void
evaluateSearchRule(org.apache.log4j.rule.Rule searchRule)
java.awt.Color
getBackground()
java.awt.Color
getColorRuleBackground()
java.awt.Color
getColorRuleForeground()
java.awt.Color
getForeground()
org.apache.log4j.spi.LoggingEvent
getLoggingEvent()
int
getMarkerHeight()
int
getMsgHeight()
java.util.Set
getPropertyKeySet()
java.util.Map
getSearchMatches()
int
hashCode()
boolean
isDisplayed()
boolean
isSearchMatch()
java.lang.Object
removeProperty(java.lang.String propName)
void
setDisplayed(boolean b)
void
setMarkerHeight(int markerHeight)
void
setMsgHeight(int msgHeight)
void
setPreviousDisplayedEventTimestamp(long previousDisplayedEventTimeStamp)
void
setProperty(java.lang.String propName, java.lang.String propValue)
java.lang.String
toString()
void
updateColorRuleColors(java.awt.Color backgroundColor, java.awt.Color foregroundColor)
-
-
-
Field Detail
-
loggingEvent
private final org.apache.log4j.spi.LoggingEvent loggingEvent
-
DEFAULT_HEIGHT
private static final int DEFAULT_HEIGHT
- See Also:
- Constant Field Values
-
colorRuleBackground
private java.awt.Color colorRuleBackground
-
colorRuleForeground
private java.awt.Color colorRuleForeground
-
markerHeight
private int markerHeight
-
msgHeight
private int msgHeight
-
id
private int id
-
searchMatch
private boolean searchMatch
-
eventMatches
java.util.Map eventMatches
-
syncWrapper
private LoggingEventWrapper syncWrapper
-
displayed
private boolean displayed
-
-
Constructor Detail
-
LoggingEventWrapper
public LoggingEventWrapper(org.apache.log4j.spi.LoggingEvent loggingEvent)
-
LoggingEventWrapper
public LoggingEventWrapper(LoggingEventWrapper loggingEventWrapper)
-
-
Method Detail
-
getLoggingEvent
public org.apache.log4j.spi.LoggingEvent getLoggingEvent()
-
setProperty
public void setProperty(java.lang.String propName, java.lang.String propValue)
-
removeProperty
public java.lang.Object removeProperty(java.lang.String propName)
-
getPropertyKeySet
public java.util.Set getPropertyKeySet()
-
updateColorRuleColors
public void updateColorRuleColors(java.awt.Color backgroundColor, java.awt.Color foregroundColor)
-
evaluateSearchRule
public void evaluateSearchRule(org.apache.log4j.rule.Rule searchRule)
-
getSearchMatches
public java.util.Map getSearchMatches()
-
getForeground
public java.awt.Color getForeground()
-
getBackground
public java.awt.Color getBackground()
-
getColorRuleBackground
public java.awt.Color getColorRuleBackground()
-
getColorRuleForeground
public java.awt.Color 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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-