OScript API/Built-in Package Index |
This API will allow a developer to configure and use logging in Content Server.
The logger name prefix for all Content Server loggers.
All message levels will be logged.
Only DEBUG log messages and higher will be logged.
Only ERROR log messages and higher will be logged.
Only FATAL log messages will be logged.
Only INFO log messages and higher will be logged.
Log level output is disabled. Nothing will be logged.
Only TRACE log messages and higher will be logged.
Only WARN log messages and higher will be logged.
Success return constant.
Indicates whether or not Content Server is able to compress log files.
Internal function used to access the contents of the Content Server logging properties file.
Gets the master list of loggers defined in Content Server.
Gets the current level for the given logger (LEVEL_OFF if the logger doesn't exist).
Gets the name of the logger registered for the current thread.
Gets a string description for the given log level.
Forces a reload of the log settings.
Sets the current level for the given logger.
The logger name prefix for all Content Server loggers.
Messages for all log levels will be logged.
Only DEBUG log messages and higher will be logged. Debug level is reserved for internal debugging messages. Enabling this level could have a severe impact on program performance.
Only ERROR log messages and higher will be logged.
Only FATAL log messages will be logged.
Only INFO log messages and higher will be logged.
Log level output is disabled. Nothing will be logged.
Only TRACE log messages and higher will be logged. Trace level is reserved for internal function-level trace debugging. Enabling this level will have a severe impact on program performance.
Only WARN log messages and higher will be logged.
Success return constant.
Indicates whether or not Content Server is able to compress log files.
This is based on the presence of a gzip
or zip
command within the executable path available to Content Server.
A Boolean indicating whether Content Server is able to compress log files.
Internal function used to access the contents of the Content Server logging properties file.
The intention of this built-in function is for migration of settings from the "contentserver.logging.properties
" file to the "opentext.ini
" configuration file.
Path to the "contentserver.logging.properties
" configuration file.
An Assoc containing the configuration settings.
Gets the master list of loggers defined in Content Server.
The prefix logger name to match (for example, "com.opentext.contentserver
" would match any logger name that started with this string.
True if logger names containing numbers should be collapsed, false if each should be returned separately.
For example, application.logger.[1]
, application.logger.[2]
are defined in the system. If collapse is true, the logger list will only contain application.logger.
A List containing the logger names if successful. If the function fails, an error code will be returned.
Gets the current level configured for the given logger.
The name of the logger to get the current level for.
An Integer representing the current log level. Logging.LEVEL_OFF if the logger doesn't exist.
Gets the name of the logger registered for the current thread.
The name of the thread logger.
Gets a (localized) description string for a given log level.
The log level to get a description for.
A String representation of the given log level.
Forces the current thread logger to reload its configuration settings.
Logging.OK (Integer zero) if successful; Error otherwise.
Sets the log level for the given logger.
The name of the logger whose level is to be set.
The level to set.
Logging.OK (Integer zero) if successful; Error otherwise.
Copyright © 2021 OpenText Corporation. All rights reserved. |