public class LogMessage extends BusMessage<String,String>
obj| Constructor and Description |
|---|
LogMessage(String threadName,
String loggerName,
String sourceName,
String formattedDetails,
String level)
LogMessage constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
encodeObject(String obj)
Subclasses must provide a specific implementation of the encoding process.
|
String |
getEncodedData()
Get the Encoded version of the embedded Object.
|
String |
getFormattedDetails()
The formatted version of the logged message.
|
String |
getLevel()
The level (or severity) of the LogMessage.
|
String |
getLoggerName()
Get the name of the logger used to record the LogMessage.
|
String |
getSourceName()
Get the source of the LogMessage.
|
String |
getThreadName()
Get the name of the thread on which the LogMessage originated.
|
String |
toString()
returns the "formatted details"
|
getCCSTimeStamp, getClassName, getDeserializationDuration, getDoneDeSerializationTime, getIncomingQueueInTimeStamp, getIncomingQueueOutTimeStamp, getObject, getOriginAgentInfo, getOutgoingQueueInTimeStamp, getOutgoingQueueOutTimeStamp, getSerializationDuration, getSerializationTime, getTransferDuration, setIncomingQueueInTimeStamp, setIncomingQueueOutTimeStamp, setOriginAgentInfo, setOutgoingQueueInTimeStamp, setOutgoingQueueOutTimeStamp, updateTimingInformationpublic LogMessage(String threadName, String loggerName, String sourceName, String formattedDetails, String level)
threadName - the name of the thread from which the LogMessage was createdloggerName - the name of the logger which issued the logsourceName - concatenation of the form ClassName#methodNameformattedDetails - a formatted String that represents the Log record (can be text or xml)
it is dependent on the Formatter of the Handler.level - A string representing the Levelprotected String encodeObject(String obj)
BusMessageencodeObject in class BusMessage<String,String>obj - The Serializable object embedded in the BusMessage.public String getEncodedData()
BusMessagegetEncodedData in class BusMessage<String,String>public String getThreadName()
public String getLoggerName()
public String getSourceName()
public String getFormattedDetails()
public String getLevel()
public String toString()
toString in class BusMessage<String,String>Copyright © 2020 LSST. All rights reserved.