public class EmbeddedXMLLogItem extends AbstractSTAFXmlLogItem
| Modifier and Type | Field and Description |
|---|---|
protected java.io.OutputStreamWriter |
out |
capXMLdebugLog, 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 |
|---|---|
protected void |
appendFinalLog(java.io.Writer out)
Override superclass prepend to provide a valid XML header if capXML is true.
|
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 |
prependFinalLog(java.io.Writer out)
Override superclass prepend to provide a valid XML header if capXML is true.
|
protected void |
write(java.lang.String msg) |
formatMessage, getCapXML, logMessage, logMessage, setCapXMLexportSTAFLog, getMachineName, readStringFromSTAFLog, readUIntFromSTAFLog, setDebugLog, setHandle, stafLogLog, stafLogLog, stafLogRequestfileExists, getAbsolutePath, getFileSpec, getParentDir, isFileSpecAbsolute, setParentDirpublic 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()
STAFFileLogItemgetSTAFLogDirectory in class STAFFileLogItemprotected void write(java.lang.String msg)
public void logMessage(java.lang.String msg,
java.lang.String desc,
int msgType)
AbstractSTAFXmlLogItemlogMessage in class AbstractSTAFXmlLogItemmsg - the message to log.desc - additional description to log.msgType - the int identifier of the type of message being logged.public void init()
AbstractSTAFXmlLogIteminit in class AbstractSTAFXmlLogItemprotected void prependFinalLog(java.io.Writer out)
AbstractSTAFXmlLogItemprependFinalLog in class AbstractSTAFXmlLogItemout - PrintWriterprotected void appendFinalLog(java.io.Writer out)
AbstractSTAFXmlLogItemappendFinalLog in class AbstractSTAFXmlLogItemout - PrintWriterpublic void close()
throws STAFLogException
close in class AbstractSTAFXmlLogItemSTAFLogException - if this method failed for any reason.protected void finalizeLogFile()
throws STAFLogException
STAFFileLogItemfinalizeLogFile in class STAFFileLogItemSTAFLogExceptionCopyright © SAS Institute. All Rights Reserved.