Class 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 Detail

      • loggingEvent

        private final org.apache.log4j.spi.LoggingEvent loggingEvent
      • 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
      • displayed

        private boolean displayed
    • Constructor Detail

      • LoggingEventWrapper

        public LoggingEventWrapper​(org.apache.log4j.spi.LoggingEvent loggingEvent)
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object