public class CommonsLoggingLogBackend extends Object implements LogBackend
Modifier and Type | Class and Description |
---|---|
static class |
CommonsLoggingLogBackend.CommonsLoggingLogBackendFactory
Factory for generating CommonsLoggingLogBackend instances.
|
Constructor and Description |
---|
CommonsLoggingLogBackend(String className) |
Modifier and Type | Method and Description |
---|---|
boolean |
isLevelEnabled(Level level)
Returns true if the log level argument is enabled meaning that the log messages should be shown.
|
void |
log(Level level,
String msg)
Log a message.
|
void |
log(Level level,
String msg,
Throwable t)
Log a message with a throwable which is guaranteed to not be null.
|
public CommonsLoggingLogBackend(String className)
public boolean isLevelEnabled(Level level)
LogBackend
isLevelEnabled
in interface LogBackend
public void log(Level level, String msg)
LogBackend
log
in interface LogBackend
public void log(Level level, String msg, Throwable t)
LogBackend
log
in interface LogBackend
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.