Hi All, for the first time I am writing any blog. In this I've tried to share my OAF knowledge with all. Kindly bear with me and my language :). Your comments will be highly appreciated to improve it.
For creating logs from OAF java pages writeDiagnostics() method is used.
writeDiagnostics(Object module ,String message,int logLevel);
module
- current module, usually the "this" pointermessageText
- message to be included in the log. Limit 4000 characters.logLevel
- category or type of log message. Valid values are are from OAFwkConstants
. (UNEXPECTED
,ERROR
, EXCEPTION
,EVENT
,PROCEDURE
,STATEMENT
,PERFORMANCE
)In controller this method can be accessed by OAPageContext class object
pageContext.writeDiagnostics(this,"Write Log",OAFwkConstants.STATEMENT) ;
While in AM, VO and EO the method can be accessed by the OADBTransactionImpl class object
OADBTransactionImpl.writeDiagnostics(this,"Log Message",OAFwkConstants.STATEMENT) ;
Set the profile option FND: Debug Log Level at user-level.
The logs written through this method can be viewed by enabling the Diagnostics on the OA Pages.
No comments:
Post a Comment