Search Results g_file_debug
Overview
APPS.AHL_DEBUG_PUB is a public PL/SQL package body in the Oracle E-Business Suite Applications schema (APPS). It belongs to the Oracle Enterprise Asset Management (eAM) / Asset Lifecycle product family, as indicated by the AHL object prefix, and is classified with API classification PUB, denoting a public interface intended for supported external invocation. The package supplies a centralized debugging and diagnostic logging facility used by eAM and maintenance-related modules to capture runtime information, application messages, and error conditions during processing.
The object is recorded with status VALID in the ETRM documentation for release 12.2.2, and equivalent metadata is published for 12.1.1. Its primary technical role is to wrap Oracle Application Object Library logging services so that callers, including forms, concurrent programs, and PL/SQL APIs, can emit diagnostic output under a single, consistently governed interface rather than calling FND_LOG and FND_MSG_PUB directly.
Key Procedures and Functions
The package exposes five documented program units. These constitute the public surface of the API and are the routines that dependent packages are expected to call.
- ENABLE_DEBUG — Activates debug output for the current session or calling context, establishing the state under which subsequent debug messages are written.
- DISABLE_DEBUG — Reverses the effect of ENABLE_DEBUG, suppressing further debug output so that production or high-volume processing is not burdened by diagnostic writes.
- DEBUG — The principal logging routine. It accepts caller-supplied diagnostic text and directs it to the logging infrastructure when debugging is active.
- LOG_APP_MESSAGES — Iterates over (or consumes) messages currently held on the application message stack and writes them to the log, which is valuable when an API raises multiple messages that would otherwise be lost after the call returns.
- IS_LOG_ENABLED — A query function that reports whether logging or debugging is currently active, allowing callers to avoid building expensive message strings when output would be discarded.
No parameter lists are documented in the ETRM extract, and none are asserted here.
Tables Accessed
The ETRM metadata records no directly referenced application tables through APPS synonyms. Instead, the package depends on other PL/SQL units and infrastructure packages: FND_API, FND_LOG, FND_MSG_PUB, and the SYS STANDARD package. Consequently, diagnostic information is not persisted to a dedicated AHL table by this package; it flows through the Oracle Application Object Library logging and message framework, whose own storage (for example, the FND log tables managed by FND_LOG) is populated indirectly.
Usage Notes
AHL_DEBUG_PUB is intended for diagnostic instrumentation, not for transactional business logic. Typical invocation patterns include eAM forms and concurrent programs that need a trace of processing steps, and custom PL/SQL code that already calls AHL public APIs and wishes to record context before and after those calls. The conventional pattern is to test IS_LOG_ENABLED before assembling a debug message, optionally call ENABLE_DEBUG during a troubleshooting session, call DEBUG and LOG_APP_MESSAGES as processing proceeds, and then call DISABLE_DEBUG to restore normal performance.
The package is described in the metadata as referenced by 122 other packages, confirming that it is a widely reused utility within the AHL and adjacent eAM code base. It is not referenced by any database object, meaning it sits at the top of its own dependency chain. Because debug instrumentation adds overhead, it should remain disabled in production unless an active investigation requires it, and it should be disabled again once diagnostics are captured.
-
PACKAGE BODY: APPS.AHL_DEBUG_PUB
12.2.2
-
PACKAGE BODY: APPS.AHL_DEBUG_PUB
12.1.1
-
PACKAGE: APPS.AHL_DEBUG_PUB
12.1.1
-
PACKAGE: APPS.AHL_DEBUG_PUB
12.2.2
-
PACKAGE BODY: APPS.HZ_UTILITY_V2PUB
12.1.1
-
PACKAGE BODY: APPS.HZ_UTILITY_V2PUB
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on UTL_FILE
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on UTL_FILE
12.1.1
-
APPS.AHL_DEBUG_PUB dependencies on FND_API
12.1.1
-
APPS.AHL_DEBUG_PUB dependencies on FND_API
12.2.2
-
APPS.AHL_DEBUG_PUB dependencies on FND_MSG_PUB
12.2.2
-
APPS.AHL_DEBUG_PUB dependencies on FND_MSG_PUB
12.1.1
-
PACKAGE BODY: APPS.HZ_ELOCATION_PKG
12.1.1
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_MESSAGE
12.1.1
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_MESSAGE
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_MSG_PUB
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_MSG_PUB
12.1.1
-
APPS.HZ_ELOCATION_PKG dependencies on FND_PROFILE
12.1.1
-
APPS.FUN_RULE_UTILITY_PKG dependencies on UTL_FILE
12.1.1
-
PACKAGE BODY: APPS.HZ_ELOCATION_PKG
12.2.2
-
APPS.HZ_ELOCATION_PKG dependencies on HZ_ELOCATION_PKG
12.1.1
-
APPS.FUN_RULE_UTILITY_PKG dependencies on UTL_FILE
12.2.2
-
APPS.HZ_ELOCATION_PKG dependencies on HZ_ELOCATION_PKG
12.2.2
-
PACKAGE BODY: APPS.FUN_RULE_UTILITY_PKG
12.2.2
-
APPS.AHL_DEBUG_PUB dependencies on FND_LOG
12.1.1
-
APPS.AHL_DEBUG_PUB dependencies on FND_LOG
12.2.2
-
PACKAGE BODY: APPS.FUN_RULE_UTILITY_PKG
12.1.1
-
APPS.HZ_ELOCATION_PKG dependencies on FND_PROFILE
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_API
12.2.2
-
APPS.HZ_UTILITY_V2PUB dependencies on FND_API
12.1.1
-
APPS.HZ_ELOCATION_PKG dependencies on FND_FILE
12.1.1
-
APPS.HZ_ELOCATION_PKG dependencies on HZ_UTILITY_V2PUB
12.1.1
-
APPS.HZ_ELOCATION_PKG dependencies on HZ_UTILITY_V2PUB
12.2.2
-
APPS.HZ_ELOCATION_PKG dependencies on FND_FILE
12.2.2