swirl
Guide to OmniMark 9   OmniMark home
docs home 
 
  Related Topics   Other Library Functions  
function  

mq-set-logging-level

 
 


Declaration

define function mq-set-logging-level
       value                integer           logging-level

Argument definitions

logging-level
is an integer value representing the desired logging level.


Purpose

Use mq-set-logging-level to set the logging level, which determines whether warnings and/or errors are logged to the OmniMark log stream.

Requirements

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:

Usage Notes

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:

Example

set the logging level to mq-log-warnings

  process
    mq-set-logging-level mq-log-warnings

    Related Topics
 
Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.