Package org.apache.maven.shared.invoker
Interface InvokerLogger
- All Known Implementing Classes:
PrintStreamLogger,SystemOutLogger
public interface InvokerLogger
A logger used by
Invoker instances to output diagnostic messages.- Author:
- Jason van Zyl
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe threshold for debug output.static final intThe threshold for error output.static final intThe threshold for fatal error output.static final intThe threshold for info output.static final intThe threshold for warn output. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs the specified debug message.voidLogs the specified debug message and the accompanying exception.voidLogs the specified error message.voidLogs the specified error message and the accompanying exception.voidfatalError(String message) Logs the specified fatal error message.voidfatalError(String message, Throwable throwable) Logs the specified fatal error message and the accompanying exception.intGets the logger's threshold.voidLogs the specified info message.voidLogs the specified info message and the accompanying exception.booleanTests whether debug output is enabled for this logger.booleanTests whether error output is enabled for this logger.booleanTests whether fatal error output is enabled for this logger.booleanTests whether info output is enabled for this logger.booleanTests whether warn output is enabled for this logger.voidsetThreshold(int threshold) Sets the logger's threshold.voidLogs the specified warning message.voidLogs the specified warning message and the accompanying exception.
-
Field Details
-
DEBUG
static final int DEBUGThe threshold for debug output.- See Also:
-
INFO
static final int INFOThe threshold for info output.- See Also:
-
WARN
static final int WARNThe threshold for warn output.- See Also:
-
ERROR
static final int ERRORThe threshold for error output.- See Also:
-
FATAL
static final int FATALThe threshold for fatal error output.- See Also:
-
-
Method Details
-
debug
Logs the specified debug message.- Parameters:
message- The message to log, may benull.
-
debug
Logs the specified debug message and the accompanying exception.- Parameters:
message- The message to log, may benull.throwable- The exception to log, may benull.
-
isDebugEnabled
boolean isDebugEnabled()Tests whether debug output is enabled for this logger.- Returns:
trueif messages with priority "debug" or above are logged,falseotherwise.
-
info
Logs the specified info message.- Parameters:
message- The message to log, may benull.
-
info
Logs the specified info message and the accompanying exception.- Parameters:
message- The message to log, may benull.throwable- The exception to log, may benull.
-
isInfoEnabled
boolean isInfoEnabled()Tests whether info output is enabled for this logger.- Returns:
trueif messages with priority "info" or above are logged,falseotherwise.
-
warn
Logs the specified warning message.- Parameters:
message- The message to log, may benull.
-
warn
Logs the specified warning message and the accompanying exception.- Parameters:
message- The message to log, may benull.throwable- The exception to log, may benull.
-
isWarnEnabled
boolean isWarnEnabled()Tests whether warn output is enabled for this logger.- Returns:
trueif messages with priority "warn" or above are logged,falseotherwise.
-
error
Logs the specified error message.- Parameters:
message- The message to log, may benull.
-
error
Logs the specified error message and the accompanying exception.- Parameters:
message- The message to log, may benull.throwable- The exception to log, may benull.
-
isErrorEnabled
boolean isErrorEnabled()Tests whether error output is enabled for this logger.- Returns:
trueif messages with priority "error" or above are logged,falseotherwise.
-
fatalError
Logs the specified fatal error message.- Parameters:
message- The message to log, may benull.
-
fatalError
Logs the specified fatal error message and the accompanying exception.- Parameters:
message- The message to log, may benull.throwable- The exception to log, may benull.
-
isFatalErrorEnabled
boolean isFatalErrorEnabled()Tests whether fatal error output is enabled for this logger.- Returns:
trueif messages with priority "fatal" or above are logged,falseotherwise.
-
setThreshold
void setThreshold(int threshold) Sets the logger's threshold. -
getThreshold
int getThreshold()Gets the logger's threshold.
-