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.SerializableThis 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()LevelgetLevel()java.lang.StringgetLoggerName()java.lang.StringgetMarker()java.lang.StringgetMessage()java.util.Map<java.lang.String,java.lang.String>getProperties()java.lang.StringgetSourceLocation()longgetTimestamp()voidsetException(java.lang.String[] exception)voidsetLevel(Level level)voidsetLoggerName(java.lang.String loggerName)voidsetMarker(java.lang.String marker)voidsetMessage(java.lang.String message)voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetSourceLocation(java.lang.String sourceLocation)voidsetTimestamp(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)
-
-