-
- All Known Implementing Classes:
CliOutLogger
,CliOutNone
public interface CliOut
Interface to log messages andexceptions
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSuppressed()
void
log(Object... messages)
void
log(String message)
void
log(String message, Throwable exception)
void
log(Throwable exception)
void
logFormat(String format, Object... args)
Likelog(String)
but with dynamic arguments.
-
-
-
Method Detail
-
log
void log(String message)
- Parameters:
message
- the message to print.
-
log
void log(Object... messages)
- Parameters:
messages
- the array of messages to print in a single line.
-
logFormat
void logFormat(String format, Object... args)
Likelog(String)
but with dynamic arguments.- Parameters:
format
- - seeString.format(String, Object...)
.args
- - seeString.format(String, Object...)
.
-
log
void log(String message, Throwable exception)
- Parameters:
message
- the error message to print.exception
- theThrowable
that occurred ornull
for none.
-
isSuppressed
boolean isSuppressed()
- Returns:
true
if thisCliOut
is suppressed and all methods will have no effect,false
otherwise.
-
-