Share this page

# lr_get_debug_message

Returns the current message logging settings.

    unsigned int lr_get_debug_message( );

Alphabetical Listing - C Language Utility Functions

## Return Values

lr_get_debug_message returns runtime message settings for logging. The first table below shows the base values, one of which is always returned. The second table shows values that can be ORed with other values to refine the setting.

Log Level | C Language Constants | Object Oriented Constants | Value
--- | --- | --- | ---
Disabled | LR_MSG_CLASS_DISABLE_LOG | lr.MSG_CLASS_DISABLE_LOG | 0
Brief | LR_MSG_CLASS_BRIEF_LOG | lr.MSG_CLASS_BRIEF_LOG | 1
Extended Log | LR_MSG_CLASS_EXTENDED_LOG | lr.MSG_CLASS_EXTENDED_LOG | 16

The following are ORed with the Extended Log message setting used to further refine the setting.

Log Level | C Language Constants | Object Oriented Constants | Value
--- | --- | --- | ---
Result Data | LR_MSG_CLASS_RESULT_DATA | lr.MSG_CLASS_RESULT_DATA | 2
Parameter Substitution | LR_MSG_CLASS_PARAMETERS | lr.MSG_CLASS_PARAMETERS | 4
Full Runtime Trace | LR_MSG_CLASS_FULL_TRACE | lr.MSG_CLASS_FULL_TRACE | 8
Only on error. Only on error can be ORed with all other message settings. Which messages are sent on error depends on the other settings. | LR_MSG_CLASS_JIT_LOG_ON_ERROR | lr.MSG_CLASS_JIT_LOG_ON_ERROR | 512

## Parameterization

You cannot use standard parameterization for any arguments in this function.

See Also

## Example

In the following example, the lr_get_debug_message function retrieves the runtime logging settings, performs a bitwise operation, and sends an appropriate message.

    int msg_level;
    msg_level=lr_get_debug_message( );

    /* Check if message level is "Data Returned by Server" and "Parameter Substitution" */
    if ((msg_level & LR_MSG_CLASS_RESULT_DATA) && (msg_level & LR_MSG_CLASS_PARAMETERS))
        lr_output_message("Current message level is result data and parameters.");

    /* Check for standard logging */
    if (msg_level & LR_MSG_CLASS_BRIEF_LOG)
        lr_output_message("Logging is enabled.");

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: