Search Results ahl_api_debug_file_path
Overview
APPS.AHL_DEBUG_PUB is a public utility package in the Oracle E-Business Suite Application Framework and Lifecycle (AHL) product family. Its purpose is to provide a centralized, profile-driven debugging and diagnostic logging facility for the AHL application modules. Rather than embedding ad hoc logging logic in each API, AHL developers and support personnel can call this package to emit debug messages to either a database-writable operating system file or the DBMS_OUTPUT buffer, depending on how the relevant profile options are configured. In EBS 12.1.1 and 12.2.2 environments the package retains the same AUTHID CURRENT_USER declaration and API surface, making it a stable diagnostic utility across both release trains.
Key Procedures and Functions
The documented public interface comprises five procedures and functions, all of which are declared in the package specification:
- ENABLE_DEBUG — Activates file-based or DBMS debug logging according to profile option settings. The AHL_API_FILE_DEBUG_ON profile controls whether debug messages are written to a user-specified file, whose path and name are supplied by the AHL_API_DEBUG_FILE_PATH and AHL_API_DEBUG_FILE_NAME profiles; the file path must be database-writable. The AHL_API_DBMS_DEBUG_ON profile controls DBMS-based debug output.
- DISABLE_DEBUG — Turns off file or DBMS debug logging.
- DEBUG — Emits a single debug message. Accepts a message string and an optional prefix (defaulting to 'DEBUG').
- LOG_APP_MESSAGES — Writes debug messages based on the message count held in the application message stack. This is the procedure returned by the user's search for "log_app_messages." It accepts a message count parameter that reflects the number of messages on the stack and the corresponding message data, allowing the package to iterate over accumulated application messages and log them for diagnostic review.
- IS_LOG_ENABLED — A function that reports whether logging is currently enabled, allowing calling code to avoid the overhead of constructing debug strings when logging is inactive.
The package also declares a global variable, G_FILE_DEBUG, initialized to FALSE, which tracks file debug state internally.
Tables Accessed
The documented metadata does not identify any base tables referenced through APPS synonyms. The package operates primarily against profile option values and, for file debug, an operating system file whose location is defined through profile settings rather than through a database table. Any message data processed by LOG_APP_MESSAGES is supplied by the caller, not read directly from a persistent table by this package.
Usage Notes
AHL_DEBUG_PUB is a developer and support utility rather than an end-user-facing component. It is typically invoked from within other PL/SQL packages, concurrent program logic, or custom extensions during troubleshooting of AHL APIs. Because it is referenced by 122 other packages, its signature and behavior are effectively frozen; changes to the specification could break a large number of dependent objects. In practice, a support engineer enables debug by setting the appropriate profiles and calling ENABLE_DEBUG, exercises the failing transaction, then reviews the output file or DBMS_OUTPUT, and finally calls DISABLE_DEBUG. Custom code should guard debug calls with IS_LOG_ENABLED to minimize runtime cost, and LOG_APP_MESSAGES is the preferred entry point when the goal is to capture an entire message stack rather than a single diagnostic line.
-
PACKAGE: APPS.AHL_DEBUG_PUB
12.1.1
-
PACKAGE: APPS.AHL_DEBUG_PUB
12.2.2
-
PACKAGE BODY: APPS.AHL_DEBUG_PUB
12.1.1
-
PACKAGE BODY: APPS.AHL_DEBUG_PUB
12.2.2