org.sonatype.aether.impl.internal
Class PlexusLogger

java.lang.Object
  extended by org.sonatype.aether.impl.internal.PlexusLogger
All Implemented Interfaces:
Logger

@Component(role=Logger.class)
public class PlexusLogger
extends java.lang.Object
implements Logger

A logger that delegates to Plexus logging.

Author:
Benjamin Bentmann

Constructor Summary
PlexusLogger()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusLogger

public PlexusLogger()
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: Logger
Indicates whether debug logging is enabled.

Specified by:
isDebugEnabled in interface Logger
Returns:
true if debug logging is enabled, false otherwise.

debug

public void debug(java.lang.String msg)
Description copied from interface: Logger
Emits the specified message.

Specified by:
debug in interface Logger
Parameters:
msg - The message to log, must not be null.

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable error)
Description copied from interface: Logger
Emits the specified message along with a stack trace of the given exception.

Specified by:
debug in interface Logger
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.