public class Jdk13LumberjackLogger extends Object implements Log, Serializable
org.apache.commons.logging.Log
interface that wraps the standard JDK logging mechanisms that are
available in SourceForge's Lumberjack for JDKs prior to 1.4.Modifier and Type | Field and Description |
---|---|
protected static Level |
dummyLevel
This member variable simply ensures that any attempt to initialise
this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
|
protected Logger |
logger
The underlying Logger implementation we are using.
|
protected String |
name |
Constructor and Description |
---|
Jdk13LumberjackLogger(String name)
Construct a named instance of this Logger.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Logs a message with
java.util.logging.Level.FINE . |
void |
debug(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.FINE . |
void |
error(Object message)
Logs a message with
java.util.logging.Level.SEVERE . |
void |
error(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.SEVERE . |
void |
fatal(Object message)
Logs a message with
java.util.logging.Level.SEVERE . |
void |
fatal(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.SEVERE . |
Logger |
getLogger()
Return the native Logger instance we are using.
|
void |
info(Object message)
Logs a message with
java.util.logging.Level.INFO . |
void |
info(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.INFO . |
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
void |
trace(Object message)
Logs a message with
java.util.logging.Level.FINEST . |
void |
trace(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.FINEST . |
void |
warn(Object message)
Logs a message with
java.util.logging.Level.WARNING . |
void |
warn(Object message,
Throwable exception)
Logs a message with
java.util.logging.Level.WARNING . |
protected static final Level dummyLevel
public Jdk13LumberjackLogger(String name)
name
- Name of the logger to be constructedpublic void debug(Object message)
java.util.logging.Level.FINE
.debug
in interface Log
message
- to logLog.debug(Object)
public void debug(Object message, Throwable exception)
java.util.logging.Level.FINE
.debug
in interface Log
message
- to logexception
- log this causeLog.debug(Object, Throwable)
public void error(Object message)
java.util.logging.Level.SEVERE
.error
in interface Log
message
- to logLog.error(Object)
public void error(Object message, Throwable exception)
java.util.logging.Level.SEVERE
.error
in interface Log
message
- to logexception
- log this causeLog.error(Object, Throwable)
public void fatal(Object message)
java.util.logging.Level.SEVERE
.fatal
in interface Log
message
- to logLog.fatal(Object)
public void fatal(Object message, Throwable exception)
java.util.logging.Level.SEVERE
.fatal
in interface Log
message
- to logexception
- log this causeLog.fatal(Object, Throwable)
public void info(Object message)
java.util.logging.Level.INFO
.info
in interface Log
message
- to logLog.info(Object)
public void info(Object message, Throwable exception)
java.util.logging.Level.INFO
.info
in interface Log
message
- to logexception
- log this causeLog.info(Object, Throwable)
public boolean isDebugEnabled()
isDebugEnabled
in interface Log
public boolean isErrorEnabled()
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
isFatalEnabled
in interface Log
public boolean isInfoEnabled()
isInfoEnabled
in interface Log
public boolean isTraceEnabled()
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
isWarnEnabled
in interface Log
public void trace(Object message)
java.util.logging.Level.FINEST
.trace
in interface Log
message
- to logLog.trace(Object)
public void trace(Object message, Throwable exception)
java.util.logging.Level.FINEST
.trace
in interface Log
message
- to logexception
- log this causeLog.trace(Object, Throwable)
public void warn(Object message)
java.util.logging.Level.WARNING
.warn
in interface Log
message
- to logLog.warn(Object)
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.