org.znerd.util.log
Class Limb
java.lang.Object
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Limb
protected Limb()
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.