Class LogEvent
- java.lang.Object
-
- com.inductiveautomation.ignition.common.logging.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 Summary
Constructors Constructor Description LogEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getException()
Level
getLevel()
java.lang.String
getLoggerName()
java.lang.String
getMarker()
java.lang.String
getMessage()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
java.lang.String
getSourceLocation()
long
getTimestamp()
void
setException(java.lang.String[] exception)
void
setLevel(Level level)
void
setLoggerName(java.lang.String loggerName)
void
setMarker(java.lang.String marker)
void
setMessage(java.lang.String message)
void
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
void
setSourceLocation(java.lang.String sourceLocation)
void
setTimestamp(long timestamp)
-
-
-
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)
-
-