public interface CommandContext
A context for the execution of a Command that supplies uniform
logging and output functionality.
The logging infrastructure is purposefully simpler than, e.g., Log4J, in the interest of supporting Apache Ant and other environments.
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String s)
Logger an debug-level message.
|
void |
debug(java.lang.String s,
java.lang.Throwable t)
Logger a debug-level message that resulted from a
Throwable. |
void |
errln(java.lang.String s)
Send a line of output to the equivalent of standard error.
|
void |
error(java.lang.String s)
Logger an error.
|
void |
error(java.lang.String s,
java.lang.Throwable t)
Logger an error that resulted from a
Throwable. |
void |
info(java.lang.String s)
Logger an informative message.
|
void |
info(java.lang.String s,
java.lang.Throwable t)
Logger an informative message that resulted from a
Throwable. |
void |
out(java.lang.String s)
Send output to the equivalent of standard out.
|
void |
outln(java.lang.String s)
Send a line of output to the equivalent of standard out.
|
void |
warn(java.lang.String s)
Logger a warning.
|
void |
warn(java.lang.String s,
java.lang.Throwable t)
Logger a warning that resulted from a
Throwable |
void outln(java.lang.String s)
s - the content to send.void out(java.lang.String s)
s - the content to send.void errln(java.lang.String s)
s - the content to send.void error(java.lang.String s)
s - a descriptive message.void error(java.lang.String s,
java.lang.Throwable t)
Throwable.s - a descriptive message.t - the cause.void warn(java.lang.String s,
java.lang.Throwable t)
Throwables - t - void warn(java.lang.String s)
s - a descriptive message.void info(java.lang.String s)
s - a descriptive message.void info(java.lang.String s,
java.lang.Throwable t)
Throwable.s - a descriptive message.t - the cause.void debug(java.lang.String s,
java.lang.Throwable t)
Throwable.s - a descriptive message.t - the cause.void debug(java.lang.String s)
s - a descriptive message.