org.znerd.util.log
Class Limb

java.lang.Object
  extended by org.znerd.util.log.Limb
Direct Known Subclasses:
AntLimb, InMemoryLimb, MavenLimb, NullLimb

public class Limb
extends Object

Simple logging interface.

When null is passed as a LogLevel, then LogLevel.DEBUG is assumed.

When null is passed as a message, then an empty string is assumed.


Constructor Summary
protected Limb()
           
 
Method Summary
static void log(LogLevel level, String message)
           
static void log(LogLevel level, String message, Throwable exception)
           
protected  void logImpl(LogLevel level, String message, Throwable exception)
           
static void resetLogger()
           
static void setLogger(Limb logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Limb

protected Limb()
Method Detail

log

public static void log(LogLevel level,
                       String message)

log

public static void log(LogLevel level,
                       String message,
                       Throwable exception)

setLogger

public static void setLogger(Limb logger)
                      throws IllegalArgumentException
Throws:
IllegalArgumentException

resetLogger

public static void resetLogger()

logImpl

protected void logImpl(LogLevel level,
                       String message,
                       Throwable exception)


Copyright © 2011-2012. All Rights Reserved.