public interface LegacyLogManager extends CommonHandle, InstantiatingProcedure
Attribute or Method | API |
---|---|
ENTRY-TYPES-LIST | getEntryTypesList() |
LOG-ENTRY-TYPES | getLogEntryTypes() , setLogEntryTypes(character) |
LOGFILE-NAME | getLogFileName() , setLogFileName(character) |
LOGGING-LEVEL | getLoggingLevel() , setLoggingLevel(integer) |
LOG-THRESHOLD | getLogThreshold() |
NUM-LOG-FILES | getNumLogFiles() |
DB-CONTEXT | getDBContext() , setDBContext(character) |
CLEAR-LOG() | clearLog() |
CLOSE-LOG() | closeLog() |
WRITE-MESSAGE() | writeMessage(character) , writeMessage(character, character) |
handle.unwrapLogManager()
API, which, depending on the handle's state, it either returns an
LegacyLogManager
instance or a dynamic proxy using
handle.invalidAttrAccessProxy
.Modifier and Type | Method and Description |
---|---|
logical |
clearLog()
Delete all messages from the currently open log file.
|
logical |
closeLog()
Close the currently open log file.
|
character |
getDBContext()
Obtains the logical database name of database that the DSLOG-MANAGER is generating log
entries.
|
character |
getEntryTypesList()
Provides the comma-separated list of currently valid entry types that can be assigned to
the
setLogEntryTypes(java.lang.String) . |
character |
getLogEntryTypes()
Provides the comma-separated list of entry types that are being actively used for logging.
|
character |
getLogFileName()
Obtains the filename to which log entries and stack traces are written.
|
integer |
getLoggingLevel()
Obtains the default logging level for all logging categories.
|
integer |
getLogThreshold()
Obtains the configured log file size in bytes at which the log file will be renamed and a
new log file started.
|
integer |
getNumLogFiles()
Obtains the configured number of log files that will be stored in total (including both
backed up log files and the current log).
|
void |
setDBContext(character ldbname)
Assigns the logical database name of database that the DSLOG-MANAGER is generating log
entries.
|
void |
setDBContext(java.lang.String ldbname)
Assigns the logical database name of database that the DSLOG-MANAGER is generating log
entries.
|
void |
setLogEntryTypes(character types)
Modifies the list of log entry types that are being actively used for logging.
|
void |
setLogEntryTypes(java.lang.String types)
Modifies the list of log entry types that are being actively used for logging.
|
void |
setLogFileName(character name)
Assigns the filename to which log entries and stack traces are written.
|
void |
setLogFileName(java.lang.String name)
Assigns the filename to which log entries and stack traces are written.
|
void |
setLoggingLevel(int level)
Assigns the default logging level for all logging categories.
|
void |
setLoggingLevel(integer level)
Assigns the default logging level for all logging categories.
|
logical |
writeMessage(character msg)
Write a user defined message to the currently open log file using the default subsystem
name "APPL".
|
logical |
writeMessage(character msg,
character subsys)
Write a user defined message to the currently open log file using the given subsystem
name.
|
logical |
writeMessage(character msg,
java.lang.String subsys)
Write a user defined message to the currently open log file using the given subsystem
name.
|
logical |
writeMessage(java.lang.String msg)
Write a user defined message to the currently open log file using the default subsystem
name "APPL".
|
logical |
writeMessage(java.lang.String msg,
character subsys)
Write a user defined message to the currently open log file using the given subsystem
name.
|
logical |
writeMessage(java.lang.String msg,
java.lang.String subsys)
Write a user defined message to the currently open log file using the given subsystem
name.
|
getResourceType, readOnlyError, readOnlyError
id, id, unknown, valid
instantiatingProcedure
character getEntryTypesList()
setLogEntryTypes(java.lang.String)
.character getLogEntryTypes()
void setLogEntryTypes(java.lang.String types)
types
- The comma-separated list of active entry types.void setLogEntryTypes(character types)
types
- The comma-separated list of active entry types.character getLogFileName()
void setLogFileName(java.lang.String name)
name
- The log file name.void setLogFileName(character name)
name
- The log file name.integer getLoggingLevel()
void setLoggingLevel(int level)
There are 5 valid levels:
level
- The logging level to use by default.void setLoggingLevel(integer level)
There are 5 valid levels:
level
- The logging level to use by default.integer getLogThreshold()
integer getNumLogFiles()
character getDBContext()
unknown
if no database name has been
assigned.void setDBContext(java.lang.String ldbname)
ldbname
- The logical database name.void setDBContext(character ldbname)
ldbname
- The logical database name.logical clearLog()
true
if the operation succeeded, or false
otherwise.logical closeLog()
true
if the operation succeeded, or false
otherwise.logical writeMessage(java.lang.String msg)
msg
- The message to write.true
if the operation succeeded, or false
otherwise.logical writeMessage(character msg)
msg
- The message to write.true
if the operation succeeded, or false
otherwise.logical writeMessage(java.lang.String msg, java.lang.String subsys)
msg
- The message to write.subsys
- Subsystem name (up to 10 characters will be used).true
if the operation succeeded, or false
otherwise.logical writeMessage(character msg, java.lang.String subsys)
msg
- The message to write.subsys
- Subsystem name (up to 10 characters will be used).true
if the operation succeeded, or false
otherwise.logical writeMessage(java.lang.String msg, character subsys)
msg
- The message to write.subsys
- Subsystem name (up to 10 characters will be used).true
if the operation succeeded, or false
otherwise.logical writeMessage(character msg, character subsys)
msg
- The message to write.subsys
- Subsystem name (up to 10 characters will be used).true
if the operation succeeded, or false
otherwise.