org.sonatype.aether.test.impl
Class SysoutLogger

java.lang.Object
  extended by org.sonatype.aether.test.impl.SysoutLogger
All Implemented Interfaces:
Logger

public final class SysoutLogger
extends java.lang.Object
implements Logger


Constructor Summary
SysoutLogger()
           
 
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.
 boolean isWarnEnabled()
          Indicates whether warn logging is enabled.
 void warn(java.lang.String msg)
          Emits the specified message.
 void warn(java.lang.String msg, java.lang.Throwable error)
          Emits the specified message along with a stack trace of the given exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysoutLogger

public SysoutLogger()
Method Detail

warn

public void warn(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:
warn in interface Logger
Parameters:
msg - The message to log, must not be null.
error - The exception to log, may be null.

warn

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

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

isWarnEnabled

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

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

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,
                  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.

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.


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