|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.excalibur.logger.Log4JLogger
public class Log4JLogger
The default Log4J wrapper class for Logger. This implementation replaces the implementation from Avalon framework. It "caches" the log levels for improved performance.
| Field Summary | |
|---|---|
private static java.lang.String |
FQCN
Constant for name of class to use when recording caller of log method. |
private boolean |
m_isDebugEnabled
|
private boolean |
m_isErrorEnabled
|
private boolean |
m_isFatalErrorEnabled
|
private boolean |
m_isInfoEnabled
|
private boolean |
m_isWarnEnabled
|
private org.apache.log4j.Logger |
m_logger
underlying implementation |
| Constructor Summary | |
|---|---|
Log4JLogger(org.apache.log4j.Logger logImpl)
Create a logger that delegates to specified category. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String message)
Log a debug message. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Log a debug message. |
void |
error(java.lang.String message)
Log a error message. |
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Log a error message. |
void |
fatalError(java.lang.String message)
Log a fatalError message. |
void |
fatalError(java.lang.String message,
java.lang.Throwable throwable)
Log a fatalError message. |
org.apache.avalon.framework.logger.Logger |
getChildLogger(java.lang.String name)
Create a new child logger. |
void |
info(java.lang.String message)
Log a info message. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Log a info message. |
boolean |
isDebugEnabled()
Determine if messages of priority "debug" will be logged. |
boolean |
isErrorEnabled()
Determine if messages of priority "error" will be logged. |
boolean |
isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged. |
boolean |
isInfoEnabled()
Determine if messages of priority "info" will be logged. |
boolean |
isWarnEnabled()
Determine if messages of priority "warn" will be logged. |
void |
warn(java.lang.String message)
Log a warn message. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Log a warn message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String FQCN
private final org.apache.log4j.Logger m_logger
private final boolean m_isDebugEnabled
private final boolean m_isInfoEnabled
private final boolean m_isWarnEnabled
private final boolean m_isErrorEnabled
private final boolean m_isFatalErrorEnabled
| Constructor Detail |
|---|
public Log4JLogger(org.apache.log4j.Logger logImpl)
logImpl - the category to delegate to| Method Detail |
|---|
public final void debug(java.lang.String message)
debug in interface org.apache.avalon.framework.logger.Loggermessage - the message
public final void debug(java.lang.String message,
java.lang.Throwable throwable)
debug in interface org.apache.avalon.framework.logger.Loggermessage - the messagethrowable - the throwablepublic final boolean isDebugEnabled()
isDebugEnabled in interface org.apache.avalon.framework.logger.Loggerpublic final void info(java.lang.String message)
info in interface org.apache.avalon.framework.logger.Loggermessage - the message
public final void info(java.lang.String message,
java.lang.Throwable throwable)
info in interface org.apache.avalon.framework.logger.Loggermessage - the messagethrowable - the throwablepublic final boolean isInfoEnabled()
isInfoEnabled in interface org.apache.avalon.framework.logger.Loggerpublic final void warn(java.lang.String message)
warn in interface org.apache.avalon.framework.logger.Loggermessage - the message
public final void warn(java.lang.String message,
java.lang.Throwable throwable)
warn in interface org.apache.avalon.framework.logger.Loggermessage - the messagethrowable - the throwablepublic final boolean isWarnEnabled()
isWarnEnabled in interface org.apache.avalon.framework.logger.Loggerpublic final void error(java.lang.String message)
error in interface org.apache.avalon.framework.logger.Loggermessage - the message
public final void error(java.lang.String message,
java.lang.Throwable throwable)
error in interface org.apache.avalon.framework.logger.Loggermessage - the messagethrowable - the throwablepublic final boolean isErrorEnabled()
isErrorEnabled in interface org.apache.avalon.framework.logger.Loggerpublic final void fatalError(java.lang.String message)
fatalError in interface org.apache.avalon.framework.logger.Loggermessage - the message
public final void fatalError(java.lang.String message,
java.lang.Throwable throwable)
fatalError in interface org.apache.avalon.framework.logger.Loggermessage - the messagethrowable - the throwablepublic final boolean isFatalErrorEnabled()
isFatalErrorEnabled in interface org.apache.avalon.framework.logger.Loggerpublic final org.apache.avalon.framework.logger.Logger getChildLogger(java.lang.String name)
IllegalArgumentException if name has an empty element name
getChildLogger in interface org.apache.avalon.framework.logger.Loggername - the subname of this logger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||