|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An logger is able to log runtime message to somewhere. For example, and text file.
A log file allows user to monitor the testing status, debug the tests or do some
thing for other purpose.
This interface is quite simple because Jetif is only a testing framework,
while not a production framework. This logger interface should not be too
complex.
| Field Summary | |
static Logger |
DUMMY_LOGGER
A dummy logger do nothing, and all information received by this logger are gone to a black hole. |
static int |
ERROR
The severity level of error message. |
static int |
EXCEPTION
The severity level of exception message. |
static int |
FATAL_ERROR
The severity level of fatal error message. |
static int |
INFO
The severity level of information. |
static int |
WARNING
The severity level of warning message. |
| Method Summary | |
void |
close()
Close this logger |
void |
log(int severity,
String msg)
Log a string message with specified severity level. |
void |
log(String msg)
Log a string message with default severity level. |
void |
log(Throwable e)
Log a exception. |
| Field Detail |
public static final Logger DUMMY_LOGGER
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int FATAL_ERROR
public static final int EXCEPTION
| Method Detail |
public void log(String msg)
msg - the message content.
public void log(int severity,
String msg)
severity - the severity levelmsg - the message content.public void log(Throwable e)
e - the exception.public void close()
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||