|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.debug.StandardLog
public class StandardLog
A log that acts as a front end for a LogSink.
| Constructor Summary | |
|---|---|
StandardLog(LogSink sink)
|
|
| Method Summary | |
|---|---|
void |
log()
Record the current execution point (may include the current time, thread, code location, etc.) |
void |
log(String message)
Record the given message |
void |
log(String message,
Throwable t)
Record the given exception (or other throwable) with a descriptive message; t may be null |
void |
log(Throwable t)
Record the given exception (or other throwable); may be null |
void |
logEnd()
Record the end of an execution phase. |
void |
logEnd(String message)
Record the end of an execution phase with a descriptive message. |
void |
logEnd(String[] names,
Object... values)
Record the end of an execution phase. |
void |
logEnd(String name,
Object value)
Record the end of an execution phase. |
void |
logEnd(String message,
String[] names,
Object... values)
Record the end of an execution phase with a descriptive message. |
void |
logEnd(String message,
String name,
Object value)
Record the end of an execution phase with a descriptive message. |
void |
logStack()
Record the current thread's stack trace |
void |
logStack(String message)
Record the current thread's stack trace with a descriptive message |
void |
logStart()
Record the beginning of an execution phase. |
void |
logStart(String message)
Record the beginning of an execution phase with a descriptive message. |
void |
logStart(String[] names,
Object... values)
Record the beginning of an execution phase. |
void |
logStart(String name,
Object value)
Record the beginning of an execution phase. |
void |
logStart(String message,
String[] names,
Object... values)
Record the beginning of an execution phase with a descriptive message. |
void |
logStart(String message,
String name,
Object value)
Record the beginning of an execution phase with a descriptive message. |
void |
logValue(String name,
Object value)
Record the name and value of some variable or expression; value may be null |
void |
logValue(String message,
String name,
Object value)
Record the name and value of some variable or expression with a descriptive message; value
may be null |
void |
logValues(String[] names,
Object... values)
Record the names and values of a list of variables or expressions. |
void |
logValues(String message,
String[] names,
Object... values)
Record the names and values of a list of variables or expressions with a descriptive message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardLog(LogSink sink)
| Method Detail |
|---|
public void log()
Log
log in interface Logpublic void log(String message)
Log
log in interface Logpublic void log(Throwable t)
Lognull
log in interface Log
public void log(String message,
Throwable t)
Logt may be null
log in interface Logpublic void logEnd()
LogLog.logStart() or Log.logStart(String).
logEnd in interface Logpublic void logEnd(String message)
LogLog.logStart() or Log.logStart(String).
logEnd in interface Log
public void logEnd(String name,
Object value)
LogRecord the end of an execution phase. This is useful, for example, when a method's execution ends. This
call should always be preceded by a corresponding invocation of Log.logStart() or
Log.logStart(String).
This version also records the name and value of a variable. value may be null.
logEnd in interface Log
public void logEnd(String message,
String name,
Object value)
LogRecord the end of an execution phase with a descriptive message. This is useful, for example, when
a method's execution ends. This call should always be preceded by a corresponding invocation of
Log.logStart() or Log.logStart(String).
This version also records the name and value of a variable. value may be null.
logEnd in interface Log
public void logEnd(String[] names,
Object... values)
LogRecord the end of an execution phase. This is useful, for example, when a method's execution ends. This
call should always be preceded by a corresponding invocation of Log.logStart() or
Log.logStart(String).
This version also records the name and value of a set of variables. Any of values
may be null.
logEnd in interface Log
public void logEnd(String message,
String[] names,
Object... values)
LogRecord the end of an execution phase with a descriptive message. This is useful, for example, when
a method's execution ends. This call should always be preceded by a corresponding invocation of
Log.logStart() or Log.logStart(String).
This version also records the name and value of a set of variables. Any of values
may be null.
logEnd in interface Logpublic void logStack()
Log
logStack in interface Logpublic void logStack(String message)
Log
logStack in interface Logpublic void logStart()
LogLog.logEnd() or
Log.logEnd(String).
logStart in interface Logpublic void logStart(String message)
LogLog.logEnd() or Log.logEnd(String).
logStart in interface Log
public void logStart(String name,
Object value)
LogRecord the beginning of an execution phase. This is useful, for example, when a method's execution
begins. This call should always be followed by a corresponding invocation of Log.logEnd() or
Log.logEnd(String).
This version also records the name and value of a variable. value may be null.
logStart in interface Log
public void logStart(String message,
String name,
Object value)
LogRecord the beginning of an execution phase with a descriptive message. This is useful, for example,
when a method's execution begins. This call should always be followed by a corresponding invocation
of Log.logEnd() or Log.logEnd(String).
This version also records the name and value of a variable. value may be null.
logStart in interface Log
public void logStart(String[] names,
Object... values)
LogRecord the beginning of an execution phase. This is useful, for example, when a method's execution
begins. This call should always be followed by a corresponding invocation of Log.logEnd() or
Log.logEnd(String).
This version also records the name and value of a set of variables. Any of values
may be null.
logStart in interface Log
public void logStart(String message,
String[] names,
Object... values)
LogRecord the beginning of an execution phase with a descriptive message. This is useful, for example,
when a method's execution begins. This call should always be followed by a corresponding invocation
of Log.logEnd() or Log.logEnd(String).
This version also records the name and value of a set of variables. Any of values
may be null.
logStart in interface Log
public void logValue(String name,
Object value)
Logvalue may be null
logValue in interface Log
public void logValue(String message,
String name,
Object value)
Logvalue
may be null
logValue in interface Log
public void logValues(String[] names,
Object... values)
Logvalues
may be null.
logValues in interface Log
public void logValues(String message,
String[] names,
Object... values)
Logvalues may be null.
logValues in interface Log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||