Package org.eclipse.aether.spi.log
Interface Logger
- All Known Implementing Classes:
NullLogger
,Slf4jLoggerFactory.Slf4jLogger
,Slf4jLoggerFactory.Slf4jLoggerEx
,TestLoggerFactory.TestLogger
public interface Logger
A 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
Modifier and TypeMethodDescriptionvoid
Emits the specified message.void
Emits the specified message along with a stack trace of the given exception.boolean
Indicates whether debug logging is enabled.boolean
Indicates whether warn logging is enabled.void
Emits the specified message.void
Emits the specified message along with a stack trace of the given exception.
-
Method Details
-
isDebugEnabled
boolean isDebugEnabled()Indicates whether debug logging is enabled.- Returns:
true
if debug logging is enabled,false
otherwise.
-
debug
Emits the specified message.- Parameters:
msg
- The message to log, must not benull
.
-
debug
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:
true
if warn logging is enabled,false
otherwise.
-
warn
Emits the specified message.- Parameters:
msg
- The message to log, must not benull
.
-
warn
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
.
-