Package org.eclipse.aether.spi.log
Interface Logger
-
- All Known Implementing Classes:
NullLogger,Slf4jLoggerFactory.Slf4jLogger,Slf4jLoggerFactory.Slf4jLoggerEx,TestLoggerFactory.TestLogger
public interface LoggerA simple logger to facilitate emission of diagnostic messages. In general, unrecoverable errors should be reported via exceptions and informational notifications should be reported via events, hence this logger interface focuses on support for tracing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(java.lang.String msg)Emits the specified message.voiddebug(java.lang.String msg, java.lang.Throwable error)Emits the specified message along with a stack trace of the given exception.booleanisDebugEnabled()Indicates whether debug logging is enabled.booleanisWarnEnabled()Indicates whether warn logging is enabled.voidwarn(java.lang.String msg)Emits the specified message.voidwarn(java.lang.String msg, java.lang.Throwable error)Emits the specified message along with a stack trace of the given exception.
-
-
-
Method Detail
-
isDebugEnabled
boolean isDebugEnabled()
Indicates whether debug logging is enabled.- Returns:
trueif debug logging is enabled,falseotherwise.
-
debug
void debug(java.lang.String msg)
Emits the specified message.- Parameters:
msg- The message to log, must not benull.
-
debug
void debug(java.lang.String msg, java.lang.Throwable error)Emits the specified message along with a stack trace of the given exception.- Parameters:
msg- The message to log, must not benull.error- The exception to log, may benull.
-
isWarnEnabled
boolean isWarnEnabled()
Indicates whether warn logging is enabled.- Returns:
trueif warn logging is enabled,falseotherwise.
-
warn
void warn(java.lang.String msg)
Emits the specified message.- Parameters:
msg- The message to log, must not benull.
-
warn
void warn(java.lang.String msg, java.lang.Throwable error)Emits the specified message along with a stack trace of the given exception.- Parameters:
msg- The message to log, must not benull.error- The exception to log, may benull.
-
-