|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.adf.model.adapter.utils.DebugLog
public class DebugLog
A DebugLog object can be used to log debug messages.
A class that wants to use this class should create an instant by passing its name.
Following is an example of typical use of this class.
public class MyClass
{
// Creating the logger Debug logger
private DebugLog mDbgLog = new DebugLog(this);
...
public void myMethod()
{
mDbgLog.startMethod("myMethod");
mDbgLog.log("Start.");
try
{
...
mDbgLog.log("This is a debug log message.");
...
}
finally
{
mDbgLog.endMethod();
}
}
}
| Field Summary | |
|---|---|
static boolean |
forceLogSets to force the logging to appear on the System.out. |
| Constructor Summary | |
|---|---|
DebugLog(java.lang.Object obj)Creates a DebugLog object for a class. |
|
DebugLog(java.lang.String name)Creates a DebugLog object for a class. |
|
| Method Summary | |
|---|---|
void |
endMethod()Ends the current method. |
void |
log(java.lang.Object msg)Logs a message. |
void |
log(java.lang.String msg1, java.lang.String msg2)Logs a message. |
void |
startMethod(java.lang.String methodName)Sets the current method name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean forceLog
| Constructor Detail |
|---|
public DebugLog(java.lang.Object obj)
DebugLog object for a class.
obj - Object for the class that uses this logger.public DebugLog(java.lang.String name)
DebugLog object for a class.
name - Name of the class that uses this logger.| Method Detail |
|---|
public void startMethod(java.lang.String methodName)
methodName - Name of the method that is using the logger currently.public void endMethod()
public void log(java.lang.Object msg)
msg - Message to log.
public void log(java.lang.String msg1,
java.lang.String msg2)
msg1 - Message to log.msg2 - Message to log.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||