public interface ConsoleLogger
Modifier and Type | Method and Description |
---|---|
void |
addStatus(String msg)
Adds a new message that won't be overwritten by {#updateStatus(String)}.
|
void |
error(String msg)
Prints an error message.
|
void |
error(String label,
String message)
Log an error with a specific error label.
|
void |
error(String msg,
Throwable error)
Use to log an error.
|
void |
error(Throwable error)
Use to log an error.
|
void |
indicateProgress()
Indicates progress with the default progress indicator.
|
void |
indicateProgress(int number)
Indicates progress by number.
|
void |
indicateProgress(int number,
int total)
Indicate progress for a number and total.
|
void |
indicateProgressPercentage(long number,
long total)
Indicates progress as a percentage for the given number and total.
|
void |
info(String msg)
Synonym for #log.
|
void |
log(String msg)
Logs a message below the current status message.
|
void |
updateStatus(String msg)
Updates the current state message.
|
void |
verbose(String msg)
Outputs a verbose message.
|
void |
warn(String msg)
Prints a warning message.
|
void |
warning(String msg)
Prints a warning message.
|
void indicateProgress()
void indicateProgress(int number, int total)
number
- The current numbertotal
- The total numbervoid indicateProgressPercentage(long number, long total)
number
- The numbertotal
- The totalvoid indicateProgress(int number)
number
- The numbervoid updateStatus(String msg)
msg
- The messagevoid addStatus(String msg)
msg
- The messagevoid error(String msg)
msg
- The error messagevoid warning(String msg)
msg
- The warning messagevoid warn(String msg)
msg
- The warning messagevoid error(String msg, Throwable error)
msg
- The messageerror
- The errorvoid error(String label, String message)
label
- The labelmessage
- The messagevoid error(Throwable error)
error
- The errorvoid log(String msg)
msg
- The message to logvoid info(String msg)
msg
- The message to logvoid verbose(String msg)
msg
- The message