Class LogEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class LogEvent
    extends java.lang.Object
    implements java.io.Serializable
    This is a general purpose representation of a logging event. It is meant to be transportable, serializable, etc. It loses a bit of the definition of the /real/ events generated by the underlying log system, but often that detail is lost after storing and trying to retrieve from that store again anyhow (for example, if we store events in a db).

    This class also insulates us from changes to the underlying logging system.

    See Also:
    Serialized Form
    • Constructor Detail

      • LogEvent

        public LogEvent()
    • Method Detail

      • getLoggerName

        public java.lang.String getLoggerName()
      • setLoggerName

        public void setLoggerName​(java.lang.String loggerName)
      • getLevel

        public Level getLevel()
      • setLevel

        public void setLevel​(Level level)
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • getTimestamp

        public long getTimestamp()
      • setTimestamp

        public void setTimestamp​(long timestamp)
      • getMarker

        public java.lang.String getMarker()
      • setMarker

        public void setMarker​(java.lang.String marker)
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      • getException

        public java.lang.String[] getException()
      • setException

        public void setException​(java.lang.String[] exception)
      • getSourceLocation

        public java.lang.String getSourceLocation()
      • setSourceLocation

        public void setSourceLocation​(java.lang.String sourceLocation)