To write Log Statements in OAF Code:
Add the below piece of code in your OA page
--CONTROLLER
if (pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this, "your log statement", OAFwkConstants.STATEMENT);
--OC4J
if (OADBTranasctionImpl.isLoggingEnabled(OAFwkConstants.PROCEDURE))
OADBTransactionImpl.writeDiagnostics(this, "your message", OAFwkConstants.PROCEDURE);
Enable FND Logging Profile:
a. FND: Debug Log Enabled -- Set to Yes
b. FND: Debug Log Level -- Set to Statement level
To See Log Statements:
a. To see log statement on browser append below string to browser url and click on enter &aflog_level=statement.
b. query FND_LOG_MESSAGES in the database for all the debugging messages.
c. Select Diagnostics button from any page and in the Diagnostics page select Show Log on Screen option
No comments:
Post a Comment