Hassan Raza

A Centralized Error Logging Framework for Oracle APEX

A Centralized Error Logging Framework for Oracle APEX

Most Oracle APEX developers rely on APEX_DEBUG for troubleshooting, but it stops working the moment a session ends and has zero reach inside DBMS_SCHEDULER background jobs. In this article I walk through apex-error-logger, an open-source PL/SQL framework I built that captures errors, call stacks, and full APEX session context automatically using PRAGMA AUTONOMOUS_TRANSACTION, so your logs survive even when the main transaction rolls back. Includes real code, scheduler integration, and a ready-to-use APEX Interactive Report log viewer.