![]() Previous |
![]() Next |
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 |
|---|---|
|
|
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. |
|
|
Set to |
|
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;