|
|||||
|
||||||
Related Syntax | Related Concepts | Other Library Functions |
function |
mq-set-logging-level |
Library: Interfaces, MQSeries access (OMMQI)
Include: ommqi.xin |
define function mq-set-logging-level value integer logging-level
Argument definitions
Use mq-set-logging-level to set the logging level, which determines whether warnings and/or errors are logged to the OmniMark log stream.
You must include the following line at the beginning of your OmniMark
program:
include "ommqi.xin"
The logging-level parameter must be set to one of the allowable values (else external exception OMMQI0016).
Possible values of the logging parameter are:
When the logging level is set to mq-log-none no text is sent to the log stream.
When the logging level is set to mq-log-warnings only MQSeries calls that return a completion code of MQCC_WARNING are logged.
When the logging level is set to mq-log-all MQSeries calls that return a completion code of MQCC_WARNING or MQCC_FAILURE are written to the log stream.
The format of the logged messages is as follows: Function: <function-name> CompCode: <comp-code> Reason: <reason>
where:
set the logging level to mq-log-warnings
process mq-set-logging-level mq-log-warnings