public abstract class Log extends Object
To hook in another log framework provide another LogFactory implementation via the service loader.
Modifier and Type | Class and Description |
---|---|
static class |
Log.SuppressionCounter
Log implementation that can be used to count suppressed log outputs.
|
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
abstract void |
debug(String s) |
abstract void |
debug(String s,
Throwable ex) |
static void |
deregisterSuppression(String s) |
static Log |
getLog(Class<?> _class) |
static Log |
getLog(String s) |
abstract void |
info(String s) |
abstract void |
info(String s,
Throwable ex) |
abstract boolean |
isDebugEnabled() |
abstract boolean |
isInfoEnabled() |
static void |
registerSuppression(String s,
Log l)
Redirects log output, this is used for testing purposes.
|
abstract void |
warn(String s) |
abstract void |
warn(String s,
Throwable ex) |
public static void registerSuppression(String s, Log l)
public static void deregisterSuppression(String s)
public abstract boolean isDebugEnabled()
public abstract boolean isInfoEnabled()
public abstract void debug(String s)
public abstract void info(String s)
public abstract void warn(String s)
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.