public class STAFTextLogItem extends AbstractSTAFTextLogItem
SAFSLoggingService
,
SLSLogFacility
debugLog, handle, LINEFEED, SAFSLOG_MAJOR_VER, SAFSLOG_MINOR_VER, STAFVersion
Constructor and Description |
---|
STAFTextLogItem(java.lang.String file)
Creates a disabled
STAFTextLogItem with default name (file
name) and log level (LOGLEVEL_INFO ), and empty parent
directory. |
STAFTextLogItem(java.lang.String parent,
java.lang.String file)
Creates a disabled
STAFTextLogItem with default name (file
name) and log level (LOGLEVEL_INFO ). |
STAFTextLogItem(java.lang.String name,
java.lang.String parent,
java.lang.String file)
Creates a disabled
STAFTextLogItem with default log level
(LOGLEVEL_INFO ). |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getSTAFLogDirectory()
Returns the DIRECTORY setting of the STAF LOG service.
|
close, init, logMessage, logMessage, logMessage
appendFinalLog, exportSTAFLog, finalizeLogFile, getMachineName, prependFinalLog, readStringFromSTAFLog, readUIntFromSTAFLog, setDebugLog, setHandle, stafLogLog, stafLogLog, stafLogRequest
fileExists, getAbsolutePath, getFileSpec, getParentDir, isFileSpecAbsolute, setParentDir
public STAFTextLogItem(java.lang.String file)
STAFTextLogItem
with default name (file
name) and log level (LOGLEVEL_INFO
), and empty parent
directory.
The type of this log item is always LOGMODE_SAFS_TEXT
.
file
- the file spec of this log.public STAFTextLogItem(java.lang.String parent, java.lang.String file)
STAFTextLogItem
with default name (file
name) and log level (LOGLEVEL_INFO
).
The type of this log item is always LOGMODE_SAFS_TEXT
.
parent
- the parent directory for this log.file
- the file spec of this log.public STAFTextLogItem(java.lang.String name, java.lang.String parent, java.lang.String file)
STAFTextLogItem
with default log level
(LOGLEVEL_INFO
).
The type of this log item is always LOGMODE_SAFS_XML
.
name
- the name of this log.parent
- the parent directory for this log.file
- the file spec of this log.protected java.lang.String getSTAFLogDirectory()
getSTAFLogDirectory
in class STAFFileLogItem
Copyright © SAS Institute. All Rights Reserved.