public interface LegacyLogManager extends CommonHandle, InstantiatingProcedure, PseudoWidget
| 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() |
| 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()
Deletes all messages from the currently open log file or deletes all log files in the sequence if
rotation is enabled.
|
logical |
close(boolean isProcedureCall,
boolean closeWriteExecutor)
Closes the currently open log file.
|
logical |
closeLog()
Closes the currently open log file.
|
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 file path 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 |
initialize(LegacyLogManagerConfigs configs)
Sets configs coming from command line.
|
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 logFile)
Assigns the file path to which log entries and stack traces are written.
|
void |
setLogFileName(java.lang.String logFile)
Assigns the file path 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.
|
logical |
writeMessage(java.lang.String msg,
java.lang.String subsys,
java.lang.String[] callStack,
int logLevel,
long threadId)
Write an automated message to the currently open log file using the given subsystem name.
|
readOnlyError, readOnlyError, resourceTypeid, id, unknown, validinstantiatingProcedurevoid initialize(LegacyLogManagerConfigs configs)
configs - Configs.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 logFile)
logFile - The log file path.void setLogFileName(character logFile)
logFile - The log file path.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()
logical clearLog()
true if the operation succeeded, or false
otherwise.logical closeLog()
This method should not be used as a manual call, but only automatically from procedure execution.
Use close(boolean, boolean) instead.
true if the operation succeeded, or false
otherwise.logical close(boolean isProcedureCall, boolean closeWriteExecutor)
isProcedureCall - Flag to identify the method is called by the execution of a converted 4GL procedure.closeWriteExecutor - Flag to identify the manager is not going to use write executor any more. In case
of file being rotated or clearLog() called, this should be false.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)
true if the operation succeeded, or false
otherwise.logical writeMessage(java.lang.String msg, java.lang.String subsys, java.lang.String[] callStack, int logLevel, long threadId)
msg - The message to write.subsys - Subsystem name (up to 10 characters will be used).callStack - The call stack.logLevel - The log level.threadId - The client thread id or server thread id for AppServer and WebSpeed.true if the operation succeeded, or false
otherwise.