Previous
Previous
 
Next
Next


LOG_PAGE_SESSION_STATE Procedure

This procedure is used to log the session state of a page.

Syntax

APEX_DEBUG_MESSAGE.LOG_PAGE_SESSION_STATE (
    p_page_id    IN NUMBER    DEFAULT NULL,
    p_enabled    IN BOOLEAN   DEFAULT FALSE,
    p_level      IN NUMBER    DEFAULT 7);

Parameters

Table: LOG_PAGE_SESSION_STATE Parameters describes the parameters available in the LOG_PAGE_SESSION_STATE procedure.

LOG_PAGE_SESSION_STATE Parameters

Parameter Description

p_page_id

Identifies a page within the current application and workspace. If no value is passed for this parameter, the application's current page will be used.

p_enabled

Set to TRUE to always log messages, irrespective of whether debugging is enabled. Set to FALSE to only log messages if debugging is enabled.

p_level

Identifies the level of the long log message. Must be an integer from 1 to 7, where level 1 is the most important and level 7 (the default) is the least important.


Example

This example shows how to enable debug message logging for 1, 2 and 3 level messages and display a level 1 message containing all the session state for the application's current page. Note, the p_enabled parameter need not be specified, as debugging has been explicitly enabled and the default of false for this parameter respects this enabling. Also note the p_page_id has not been specified, as this example just shows session state information for the application's current page.

BEGIN
    APEX_DEBUG_MESSAGE.ENABLE_DEBUG_MESSAGES(p_level => 3);
    
    APEX_DEBUG_MESSAGE.LOG_PAGE_SESSION_STATE (p_level => 1);
    
END;