public class EmbeddedTextLogItem extends AbstractSTAFTextLogItem
Modifier and Type | Field and Description |
---|---|
protected java.io.OutputStreamWriter |
out |
debugLog, handle, LINEFEED, SAFSLOG_MAJOR_VER, SAFSLOG_MINOR_VER, STAFVersion
Constructor and Description |
---|
EmbeddedTextLogItem(java.lang.String file) |
EmbeddedTextLogItem(java.lang.String parent,
java.lang.String file) |
EmbeddedTextLogItem(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)
Allow subclasses to append information to the final destination log.
|
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 text log format if enabled and open.
|
protected void |
prependFinalLog(java.io.Writer out)
Allow subclasses to prepend information to the final destination log.
|
protected void |
write(java.lang.String msg) |
logMessage, logMessage
exportSTAFLog, getMachineName, readStringFromSTAFLog, readUIntFromSTAFLog, setDebugLog, setHandle, stafLogLog, stafLogLog, stafLogRequest
fileExists, getAbsolutePath, getFileSpec, getParentDir, isFileSpecAbsolute, setParentDir
public EmbeddedTextLogItem(java.lang.String name, java.lang.String parent, java.lang.String file)
public EmbeddedTextLogItem(java.lang.String parent, java.lang.String file)
public EmbeddedTextLogItem(java.lang.String file)
protected java.lang.String getSTAFLogDirectory()
STAFFileLogItem
getSTAFLogDirectory
in class STAFFileLogItem
protected void write(java.lang.String msg)
public void logMessage(java.lang.String msg, java.lang.String desc, int msgType)
AbstractSTAFTextLogItem
logMessage
in class AbstractSTAFTextLogItem
msg
- the message to log.desc
- additional description to log.msgType
- the int identifier of the type of message being logged.public void init()
AbstractSTAFTextLogItem
init
in class AbstractSTAFTextLogItem
protected void prependFinalLog(java.io.Writer out)
STAFFileLogItem
prependFinalLog
in class STAFFileLogItem
protected void appendFinalLog(java.io.Writer out)
STAFFileLogItem
appendFinalLog
in class STAFFileLogItem
public void close() throws STAFLogException
close
in class AbstractSTAFTextLogItem
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.