public interface Logger
The difference between the event handler and the logger is that the event handler is for events intended to be consumed by the client software whereas the logger is for messages intended to be consumed by the client *user* (i.e., a human).
Implementations of this interface must be thread-safe.
Modifier and Type | Method and Description |
---|---|
boolean |
ansiCodesSupported()
True if ANSI color codes are understood by this instance.
|
void |
debug(java.lang.String msg)
Provide a debug message.
|
void |
error(java.lang.String msg)
Provide an error message.
|
void |
info(java.lang.String msg)
Provide an info message.
|
void |
trace(java.lang.Throwable t)
Provide a stack trace
|
void |
warn(java.lang.String msg)
Provide an warning message.
|
boolean ansiCodesSupported()
void error(java.lang.String msg)
msg
- the error messagevoid warn(java.lang.String msg)
msg
- the warning messagevoid info(java.lang.String msg)
msg
- the info messagevoid debug(java.lang.String msg)
msg
- the debug messagevoid trace(java.lang.Throwable t)
t
- the Throwable
containing the stack trace being logged