org.sonatype.aether.spi.log
Interface Logger

All Known Implementing Classes:
NullLogger, PlexusLogger, Slf4jLogger

public interface Logger

A simple logger to facilitate emission of debug messages.

Author:
Benjamin Bentmann

Method Summary
 void debug(java.lang.String msg)
          Emits the specified message.
 void debug(java.lang.String msg, java.lang.Throwable error)
          Emits the specified message along with a stack trace of the given exception.
 boolean isDebugEnabled()
          Indicates whether debug logging is enabled.
 

Method Detail

isDebugEnabled

boolean isDebugEnabled()
Indicates whether debug logging is enabled.

Returns:
true if debug logging is enabled, false otherwise.

debug

void debug(java.lang.String msg)
Emits the specified message.

Parameters:
msg - The message to log, must not be null.

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 be null.
error - The exception to log, may be null.


Copyright © 2010 Sonatype, Inc.. All Rights Reserved.