Example: lr_get_debug_message

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.");