Logging in Controller:
if (pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE)){
pageContext.writeDiagnostics(this, "Debug Message ", OAFwkConstants.PROCEDURE);
}
if (pageContext.isLoggingEnabled(OAFwkConstants. STATEMENT)){
pageContext.writeDiagnostics(this, "Debug Message ", OAFwkConstants.STATEMENT);
}
You can use 'this' or a string with ClassName.Method Name
Logging in OC4J:(Application Modules etc)
OADBTransactionImpl txn = (OADBTransactionImpl)getOADBTransaction();
if (txn.isLoggingEnabled(OAFwkConstants.PROCEDURE)) {
txn.writeDiagnostics(this, "Debug Message ", OAFwkConstants.PROCEDURE);
}
if (txn.isLoggingEnabled(OAFwkConstants.STATEMENT)) {
txn.writeDiagnostics(this, "Debug Message ", OAFwkConstants.STATEMENT);
}
if (txn.isLoggingEnabled(OAFwkConstants.EXCEPTION)) {
txn.writeDiagnostics(this, "Debug Message", OAFwkConstants.EXCEPTION);
}
You can use 'this' or a string with ClassName.Method Name
if (pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE)){
pageContext.writeDiagnostics(this, "Debug Message
}
if (pageContext.isLoggingEnabled(OAFwkConstants. STATEMENT)){
pageContext.writeDiagnostics(this, "Debug Message
}
You can use 'this' or a string with ClassName.Method Name
Logging in OC4J:(Application Modules etc)
OADBTransactionImpl txn = (OADBTransactionImpl)getOADBTransaction();
if (txn.isLoggingEnabled(OAFwkConstants.PROCEDURE)) {
txn.writeDiagnostics(this, "Debug Message
}
if (txn.isLoggingEnabled(OAFwkConstants.STATEMENT)) {
txn.writeDiagnostics(this, "Debug Message ", OAFwkConstants.STATEMENT);
}
if (txn.isLoggingEnabled(OAFwkConstants.EXCEPTION)) {
txn.writeDiagnostics(this, "Debug Message
}
You can use 'this' or a string with ClassName.Method Name
No comments:
Post a Comment