public class EmbeddedXMLLogItem extends AbstractSTAFXmlLogItem
Modifier and Type | Field and Description |
---|---|
protected java.io.OutputStreamWriter |
out |
capXML, PROPERTY_DATE, PROPERTY_IP, PROPERTY_MACHINE, PROPERTY_MAJOR, PROPERTY_MINOR, PROPERTY_NAME, PROPERTY_TIME, PROPERTY_TYPE, PROPERTY_USER, TAG_LOG_CLOSED, TAG_LOG_MESSAGE, TAG_LOG_OPENED, TAG_LOG_VERSION, TAG_MESSAGE_DETAILS, TAG_MESSAGE_TEXT, TAG_SAFS_LOG, TAG_STATUS_END_DETAILS, TAG_STATUS_END_TEXT, TAG_STATUS_ITEM, TAG_STATUS_ITEM_DETAILS, TAG_STATUS_ITEM_TEXT, TAG_STATUS_REPORT, TAG_STATUS_START_DETAILS, TAG_STATUS_START_TEXT
debugLog, handle, LINEFEED, SAFSLOG_MAJOR_VER, SAFSLOG_MINOR_VER, STAFVersion
Constructor and Description |
---|
EmbeddedXMLLogItem(java.lang.String file) |
EmbeddedXMLLogItem(java.lang.String parent,
java.lang.String file) |
EmbeddedXMLLogItem(java.lang.String name,
java.lang.String parent,
java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this log if enabled and open.
|
protected void |
finalizeLogFile()
Finalizes the detination log file.
|
protected java.lang.String |
getSTAFLogDirectory()
Returns the DIRECTORY setting of the STAF LOG service.
|
void |
init()
Initializes this log and writes the log open message.
|
void |
logMessage(java.lang.String msg,
java.lang.String desc,
int msgType)
Logs a message in standard SAFS xml log format if enabled and open.
|
protected void |
write(java.lang.String msg)
Write a message to the log.
|
appendFinalLog, formatMessage, getCapXML, getCloseMessages, getInitMessages, logMessage, logMessage, prependFinalLog, setCapXML
exportSTAFLog, getMachineName, getTestName, readStringFromSTAFLog, readUIntFromSTAFLog, setDebugLog, setHandle, stafLogLog, stafLogLog, stafLogRequest, writeCloseMessages, writeInitMessages
fileExists, getAbsolutePath, getFileSpec, getParentDir, isFileSpecAbsolute, setParentDir
public EmbeddedXMLLogItem(java.lang.String name, java.lang.String parent, java.lang.String file)
public EmbeddedXMLLogItem(java.lang.String parent, java.lang.String file)
public EmbeddedXMLLogItem(java.lang.String file)
protected java.lang.String getSTAFLogDirectory()
STAFFileLogItem
getSTAFLogDirectory
in class STAFFileLogItem
protected void write(java.lang.String msg)
STAFFileLogItem
write
in class STAFFileLogItem
public void logMessage(java.lang.String msg, java.lang.String desc, int msgType)
AbstractSTAFXmlLogItem
logMessage
in class AbstractSTAFXmlLogItem
msg
- the message to log.desc
- additional description to log.msgType
- the int identifier of the type of message being logged.public void init()
AbstractSTAFXmlLogItem
init
in class AbstractSTAFXmlLogItem
public void close() throws STAFLogException
close
in class AbstractSTAFXmlLogItem
STAFLogException
- if this method failed for any reason.protected void finalizeLogFile() throws STAFLogException
STAFFileLogItem
finalizeLogFile
in class STAFFileLogItem
STAFLogException
Copyright © SAS Institute. All Rights Reserved.