This procedure logs messages at level c_log_level_error
. This procedure always logs, even if debug mode is turned off.
Syntax
APEX_DEBUG.ERROR ( p_message IN VARCHAR2, p0 IN VARCHAR2 DEFAULT NULL, p1 IN VARCHAR2 DEFAULT NULL, p2 IN VARCHAR2 DEFAULT NULL, p3 IN VARCHAR2 DEFAULT NULL, p4 IN VARCHAR2 DEFAULT NULL, p5 IN VARCHAR2 DEFAULT NULL, p6 IN VARCHAR2 DEFAULT NULL, p7 IN VARCHAR2 DEFAULT NULL, p8 IN VARCHAR2 DEFAULT NULL, p9 IN VARCHAR2 DEFAULT NULL, p_max_length IN PLS_INTEGER DEFAULT 1000 );
Parameters
Table 11-4 APEX_DEBUG.ERROR Procedure Parameters
Parameter | Description |
---|---|
|
The debug message. Occurrences of '%s' are replaced by |
|
Substitution strings for '%s' placeholders. |
|
The |
Example
This example shows how to use APEX_ERROR
to log a critical error in the debug log.
apex_debug.error('Critical error %s', sqlerrm);
See Also:
Parent topic: APEX_DEBUG