|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.ojb.components.LoggerImpl
public class LoggerImpl
OJB logger implementation delegating to the Avalon logger.
This class has two faces to it:
OJB.properties file. Each OJB managed instance
of the class will have access to the logger object initialized
by Avalon managed instance of the class.
| Field Summary |
|---|
| Fields inherited from interface org.apache.ojb.broker.util.logging.Logger |
|---|
DEBUG, ERROR, FATAL, INFO, serialVersionUID, WARN |
| Constructor Summary | |
|---|---|
LoggerImpl()
Constructor used by Container |
|
LoggerImpl(String name)
Constructor used by OJB 1.0 to create a logger instance |
|
LoggerImpl(String name,
org.apache.ojb.broker.util.logging.LoggingConfiguration config)
Constructor used by OJB 1.1 to create a logger instance |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.ojb.broker.util.configuration.Configuration config)
|
void |
debug(Object message)
|
void |
debug(Object message,
Throwable t)
|
void |
error(Object message)
|
void |
error(Object message,
Throwable t)
|
void |
fatal(Object message)
|
void |
fatal(Object message,
Throwable t)
|
protected int |
getLevel()
|
String |
getName()
|
void |
info(Object message)
|
void |
info(Object message,
Throwable t)
|
void |
initialize()
Set root logger instance which will be used by OJB |
boolean |
isDebugEnabled()
|
boolean |
isEnabledFor(int priority)
|
void |
safeDebug(String message,
Object obj)
|
void |
safeDebug(String message,
Object obj,
Throwable t)
|
void |
safeError(String message,
Object obj)
|
void |
safeError(String message,
Object obj,
Throwable t)
|
void |
safeFatal(String message,
Object obj)
|
void |
safeFatal(String message,
Object obj,
Throwable t)
|
void |
safeInfo(String message,
Object obj)
|
void |
safeInfo(String message,
Object obj,
Throwable t)
|
void |
safeWarn(String message,
Object obj)
|
void |
safeWarn(String message,
Object obj,
Throwable t)
|
void |
warn(Object message)
|
void |
warn(Object message,
Throwable t)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggerImpl()
public LoggerImpl(String name)
public LoggerImpl(String name,
org.apache.ojb.broker.util.logging.LoggingConfiguration config)
| Method Detail |
|---|
public void initialize()
initialize in interface Initializableprotected int getLevel()
public String getName()
getName in interface org.apache.ojb.broker.util.logging.Loggerpublic void debug(Object message)
debug in interface org.apache.ojb.broker.util.logging.Logger
public void debug(Object message,
Throwable t)
debug in interface org.apache.ojb.broker.util.logging.Logger
public void safeDebug(String message,
Object obj)
safeDebug in interface org.apache.ojb.broker.util.logging.Logger
public void safeDebug(String message,
Object obj,
Throwable t)
safeDebug in interface org.apache.ojb.broker.util.logging.Loggerpublic void info(Object message)
info in interface org.apache.ojb.broker.util.logging.Logger
public void info(Object message,
Throwable t)
info in interface org.apache.ojb.broker.util.logging.Logger
public void safeInfo(String message,
Object obj)
safeInfo in interface org.apache.ojb.broker.util.logging.Logger
public void safeInfo(String message,
Object obj,
Throwable t)
safeInfo in interface org.apache.ojb.broker.util.logging.Loggerpublic void warn(Object message)
warn in interface org.apache.ojb.broker.util.logging.Logger
public void warn(Object message,
Throwable t)
warn in interface org.apache.ojb.broker.util.logging.Logger
public void safeWarn(String message,
Object obj)
safeWarn in interface org.apache.ojb.broker.util.logging.Logger
public void safeWarn(String message,
Object obj,
Throwable t)
safeWarn in interface org.apache.ojb.broker.util.logging.Loggerpublic void error(Object message)
error in interface org.apache.ojb.broker.util.logging.Logger
public void error(Object message,
Throwable t)
error in interface org.apache.ojb.broker.util.logging.Logger
public void safeError(String message,
Object obj)
safeError in interface org.apache.ojb.broker.util.logging.Logger
public void safeError(String message,
Object obj,
Throwable t)
safeError in interface org.apache.ojb.broker.util.logging.Loggerpublic void fatal(Object message)
fatal in interface org.apache.ojb.broker.util.logging.Logger
public void fatal(Object message,
Throwable t)
fatal in interface org.apache.ojb.broker.util.logging.Logger
public void safeFatal(String message,
Object obj)
safeFatal in interface org.apache.ojb.broker.util.logging.Logger
public void safeFatal(String message,
Object obj,
Throwable t)
safeFatal in interface org.apache.ojb.broker.util.logging.Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface org.apache.ojb.broker.util.logging.Loggerpublic boolean isEnabledFor(int priority)
isEnabledFor in interface org.apache.ojb.broker.util.logging.Logger
public void configure(org.apache.ojb.broker.util.configuration.Configuration config)
throws org.apache.ojb.broker.util.configuration.ConfigurationException
configure in interface org.apache.ojb.broker.util.configuration.Configurableconfigure in interface org.apache.ojb.broker.util.logging.Loggerorg.apache.ojb.broker.util.configuration.ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||