This API will allow a developer to configure and use logging in Content Server.
String CS_LOGGER_NAME_PREFIX
The logger name prefix for all Content Server loggers.
LEVEL_OFFInteger LEVEL_OFF
Log level output is disabled. Nothing will be logged.
LEVEL_FATALInteger LEVEL_FATAL
Only FATAL log messages will be logged.
LEVEL_ERRORInteger LEVEL_ERROR
Only ERROR log messages and higher will be logged.
LEVEL_WARNInteger LEVEL_WARN
Only WARN log messages and higher will be logged.
LEVEL_INFOInteger LEVEL_INFO
Only INFO log messages and higher will be logged.
LEVEL_DEBUGInteger LEVEL_DEBUG
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.
LEVEL_TRACEInteger LEVEL_TRACE
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.
LEVEL_ALLInteger LEVEL_ALL
Messages for all log levels will be logged.
OKInteger OK
Success return constant.
GetLoggerNamesList GetLoggerNames( String loggerPrefix, [ Boolean collapse=TRUE ] )
Gets the master list of loggers defined in Content Server.
loggerPrefix | - | The prefix logger name to match (for example, "com.opentext.contentserver" would match any logger name that started with this string. |
collapse | - | 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. |
Integer GetLogLevel( String loggerName )
Gets the current level configured for the given logger.
loggerName | - | The name of the logger to get the current level for. |
Integer SetLogLevel( String loggerName ) Integer logLevel )
Sets the log level for the given logger.
loggerName | - | The name of the logger whose level is to be set. |
logLevel | - | The level to set. |
String LogLevelToString( Integer logLevel )
Gets a (localized) description string for a given log level.
logLevel | - | The log level to get a description for. |