|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A instance of this class is used be Task to log their
activity.
It is left to implementation to handle the logging method calls in a manner consistent with the "debug level" their name suggests.
| Method Summary | |
void |
close()
Closes this instance; allows for implementations to cleanup their resources. |
TaskOutput |
debug(Object message)
Outputs a message of "debug" priority. |
TaskOutput |
error(Object message)
Outputs a message of "error" priority. |
TaskOutput |
error(Object message,
Throwable err)
Outputs a message of "error" priority. |
TaskOutput |
error(Throwable err)
Outputs a message of "error" priority. |
TaskOutput |
info(Object message)
Outputs a message of "info" priority. |
void |
setTaskName(String name)
Sets the name of the task to which this instance corresponds, allowing implementations to display which task is currently generating output. |
TaskOutput |
warning(Object message)
Outputs a message of "warning" priority. |
| Method Detail |
public void setTaskName(String name)
name - a task name.public TaskOutput debug(Object message)
message - a message, as an Object.public TaskOutput info(Object message)
message - a message, as an Object.public TaskOutput warning(Object message)
message - a message, as an Object.public TaskOutput error(Object message)
message - a message, as an Object.public TaskOutput error(Throwable err)
err - a Throwable.
public TaskOutput error(Object message,
Throwable err)
message - a message, as an Object.err - a Throwable.public void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||