Logging in APEX tracks runtime activity:
A . apex_automation.log_info: Correctly logs an informational message to the execution log for
automation tasks (e.g., workflows). The syntax || :ENAME || concatenates the item value (e.g.,
"JOHN") into "SAL for JOHN increased by 19." It’s stored in APEX_AUTOMATION_LOG, viewable in
Monitoring.
B . apex_debug.info: Logs to debug output, but the syntax is flawed (:ENAME || isn’t concatenated
properly; should be 'SAL for ' || :ENAME || ...). It’s valid only when debugging is enabled (e.g.,
APEX_DEBUG.ENABLE).
C . apex_error.add_error: Adds an error to the error stack for user display, not a log message.
Technical Insight: log_info is non-intrusive, unlike apex_debug, which requires debug mode, or
apex_error, which signals failure.
Use Case: Logging salary updates in a scheduled job without debug overhead.
Pitfall: Ensure :ENAME is in scope (e.g., page item).
Reference: Oracle APEX 23.2 Documentation - "APEX_AUTOMATION Package" under API Reference.