How to Check Debug Log on OAF Pages
来源:互联网 发布:汉思软件 编辑:程序博客网 时间:2024/05/05 19:13
1. Profile 'FND: Diagnostics' = Yes at user level.This will make 'Diagnostics' menu display.
2. Login to Personal Home Page as that user and select the 'Diagnostics' icon at the top of the page.
3.In list box, Choose 'Show Log on Screen',and Select Statement
4.Once this is done , when you go to any page you would be able to see log at the bottom of the page .
-------------------------------------------------------------------------------------------------------------------------------------------------
How to write debug log in OAF page and BC4J?
Log Method in UI like:
/*** Posts messages to FND_LOG_MESSAGES using latest logging standard.<br>
* <br>
* please see oracle.apps.fnd.common.Log
* Log levels:<br>
* 6 - Unexpected Errors<br>
* 5 - Expected Errors<br>
* 4 - Exception<br>
* 3 - Event (High Level Logging Message)<br>
* 2 - Procedure (Entry / Exit from a routine)<br>
* 1 - Statement - (Low Level Logging Message)<br>
* 0 - Performance
*/
public static void log(OAPageContext pageContext, Object pModule, String pMsg, int pMessageLevel)
{
String indent = getIndentString(pageContext);
String str = formatMessage(indent, pMsg, pMessageLevel);
if( pageContext.isLoggingEnabled(pMessageLevel) )
pageContext.writeDiagnostics(pModule, str, pMessageLevel);
}
Log Method in BC4J like:
private void writeLog(String message, String methodName)
{
OADBTransaction transaction = this.getOADBTransaction();
if (transaction.isLoggingEnabled(OAFwkConstants.STATEMENT))
{
transaction.writeDiagnostics(this, methodName+":"+message, OAFwkConstants.STATEMENT);
}
}
- How to Check Debug Log on OAF Pages
- How to check backend SQL query from a OAF pages
- How to Turn On “About This Page” in Oracle R12 OAF Pages
- How to check monkey test log
- How to check iscsi issue on Nexenta
- How to check graphics card on Linux
- how to debug EXC_BAD_ACCESS on iPhone
- how to debug EXC_BAD_ACCESS on iPhone
- how to debug EXC_BAD_ACCESS on iPhone
- how to debug EXC_BAD_ACCESS on iPhone
- how to debug EXC_BAD_ACCESS on iPhone
- How to debug Javascript errors on iOS
- how to record build log on linux
- How to debug apps on Kindle Fire on OS X
- How to Check for Newer Versions of Stored Pages in a Registry
- How to check Fragmentation on SQL Server 2005
- How to check free space on memory card
- How to check Fragmentation on SQL Server 2005
- DIV+CSS最小高度(兼容IE6\IE7\FF)(转载)
- Python网络02 Python服务器进化
- SDWebImage一个可管理远程图片加载的类库
- 关于WM_QUIT消息的牛刀解释
- OpenCV--摄像机图像畸变校正
- How to Check Debug Log on OAF Pages
- javascript的ajax异步请求
- 在eclipse中编译Launcher2的方法 .
- PetShop的系统架构设计
- spring为ApplicationContext提供有三种实现
- NFS系统write调用过程(三)
- 关于PostQuitMessage()的探究
- wpf学习笔记二 深入学习 xaml
- 老鼠的6sigma改善