Package org.apache.maven.shared.invoker
Interface InvokerLogger
-
- All Known Implementing Classes:
PrintStreamLogger,SystemOutLogger
public interface InvokerLoggerA logger used byInvokerinstances to output diagnostic messages.- Author:
- Jason van Zyl
- See Also:
Invoker.setLogger(InvokerLogger)
-
-
Field Summary
Fields Modifier and Type Field Description static intDEBUGThe threshold for debug output.static intERRORThe threshold for error output.static intFATALThe threshold for fatal error output.static intINFOThe threshold for info output.static intWARNThe threshold for warn output.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(String message)Logs the specified debug message.voiddebug(String message, Throwable throwable)Logs the specified debug message and the accompanying exception.voiderror(String message)Logs the specified error message.voiderror(String message, Throwable throwable)Logs 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.intgetThreshold()Gets the logger's threshold.voidinfo(String message)Logs the specified info message.voidinfo(String message, Throwable throwable)Logs the specified info message and the accompanying exception.booleanisDebugEnabled()Tests whether debug output is enabled for this logger.booleanisErrorEnabled()Tests whether error output is enabled for this logger.booleanisFatalErrorEnabled()Tests whether fatal error output is enabled for this logger.booleanisInfoEnabled()Tests whether info output is enabled for this logger.booleanisWarnEnabled()Tests whether warn output is enabled for this logger.voidsetThreshold(int threshold)Sets the logger's threshold.voidwarn(String message)Logs the specified warning message.voidwarn(String message, Throwable throwable)Logs the specified warning message and the accompanying exception.
-
-
-
Field Detail
-
DEBUG
static final int DEBUG
The threshold for debug output.- See Also:
- Constant Field Values
-
INFO
static final int INFO
The threshold for info output.- See Also:
- Constant Field Values
-
WARN
static final int WARN
The threshold for warn output.- See Also:
- Constant Field Values
-
ERROR
static final int ERROR
The threshold for error output.- See Also:
- Constant Field Values
-
FATAL
static final int FATAL
The threshold for fatal error output.- See Also:
- Constant Field Values
-
-
Method Detail
-
debug
void debug(String message)
Logs the specified debug message.- Parameters:
message- The message to log, may benull.
-
debug
void debug(String message, Throwable throwable)
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
void info(String message)
Logs the specified info message.- Parameters:
message- The message to log, may benull.
-
info
void info(String message, Throwable throwable)
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
void warn(String message)
Logs the specified warning message.- Parameters:
message- The message to log, may benull.
-
warn
void warn(String message, Throwable throwable)
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
void error(String message)
Logs the specified error message.- Parameters:
message- The message to log, may benull.
-
error
void error(String message, Throwable throwable)
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
void fatalError(String message)
Logs the specified fatal error message.- Parameters:
message- The message to log, may benull.
-
fatalError
void fatalError(String message, Throwable throwable)
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.
-
-