Package org.apache.log4j.chainsaw
Class LoggingEventWrapper
- java.lang.Object
-
- org.apache.log4j.chainsaw.LoggingEventWrapper
-
public class LoggingEventWrapper extends java.lang.ObjectWrap 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.ColorcolorRuleBackgroundprivate java.awt.ColorcolorRuleForegroundprivate static intDEFAULT_HEIGHTprivate booleandisplayed(package private) java.util.MapeventMatchesprivate intidprivate org.apache.log4j.spi.LoggingEventloggingEventprivate intmarkerHeightprivate intmsgHeightprivate booleansearchMatchprivate LoggingEventWrappersyncWrapper
-
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 booleanequals(java.lang.Object o)voidevaluateSearchRule(org.apache.log4j.rule.Rule searchRule)java.awt.ColorgetBackground()java.awt.ColorgetColorRuleBackground()java.awt.ColorgetColorRuleForeground()java.awt.ColorgetForeground()org.apache.log4j.spi.LoggingEventgetLoggingEvent()intgetMarkerHeight()intgetMsgHeight()java.util.SetgetPropertyKeySet()java.util.MapgetSearchMatches()inthashCode()booleanisDisplayed()booleanisSearchMatch()java.lang.ObjectremoveProperty(java.lang.String propName)voidsetDisplayed(boolean b)voidsetMarkerHeight(int markerHeight)voidsetMsgHeight(int msgHeight)voidsetPreviousDisplayedEventTimestamp(long previousDisplayedEventTimeStamp)voidsetProperty(java.lang.String propName, java.lang.String propValue)java.lang.StringtoString()voidupdateColorRuleColors(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-