|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Log
A log allows messages and other information to be recorded during program execution. Implementations should be thread-safe.
| 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. |
| Method Detail |
|---|
void log()
void log(String message)
void log(Throwable t)
null
void log(String message,
Throwable t)
t may be null
void logStart()
logEnd() or
logEnd(String).
void logStart(String message)
logEnd() or logEnd(String).
void logStart(String name,
Object value)
Record 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 logEnd() or
logEnd(String).
This version also records the name and value of a variable. value may be null.
void logStart(String message,
String name,
Object value)
Record 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 logEnd() or logEnd(String).
This version also records the name and value of a variable. value may be null.
void logStart(String[] names,
Object... values)
Record 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 logEnd() or
logEnd(String).
This version also records the name and value of a set of variables. Any of values
may be null.
void logStart(String message,
String[] names,
Object... values)
Record 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 logEnd() or logEnd(String).
This version also records the name and value of a set of variables. Any of values
may be null.
void logEnd()
logStart() or logStart(String).
void logEnd(String message)
logStart() or logStart(String).
void logEnd(String name,
Object value)
Record 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 logStart() or
logStart(String).
This version also records the name and value of a variable. value may be null.
void logEnd(String message,
String name,
Object value)
Record 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
logStart() or logStart(String).
This version also records the name and value of a variable. value may be null.
void logEnd(String[] names,
Object... values)
Record 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 logStart() or
logStart(String).
This version also records the name and value of a set of variables. Any of values
may be null.
void logEnd(String message,
String[] names,
Object... values)
Record 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
logStart() or logStart(String).
This version also records the name and value of a set of variables. Any of values
may be null.
void logStack()
void logStack(String message)
void logValue(String name,
Object value)
value may be null
void logValue(String message,
String name,
Object value)
value
may be null
void logValues(String[] names,
Object... values)
values
may be null.
void logValues(String message,
String[] names,
Object... values)
values may be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||