| java.lang.Object org.apache.ojb.broker.util.logging.Log4jLoggerImpl
Log4jLoggerImpl | public class Log4jLoggerImpl implements Logger(Code) | | This is a Logger implementation based on Log4j.
It can be enabled by putting
LoggerClass=org.apache.ojb.broker.util.logging.Log4jLoggerImpl
in the OJB .properties file.
If you want log4j to initialize from a property file you can add
LoggerConfigFile=log4j.properties to the org.apache.ojb.properties file.
the logger only initializes log4j if the application hasn't done it yet
You can find sample log4j.properties file in the log4j web site
http://jakarta.apache.org/log4j
in the javadoc look for org.apache.log4j.examples
author: Bertrand author: Thomas Mahler version: $Id: Log4jLoggerImpl.java,v 1.16.2.4 2005/12/21 22:28:16 tomdz Exp $ |
Method Summary | |
public void | configure(Configuration config) | final public void | debug(Object pObject) | public void | debug(Object message, Throwable obj) | final public void | error(Object pObject) | public void | error(Object message, Throwable obj) | final public void | fatal(Object pObject) | public void | fatal(Object message, Throwable obj) | public String | getName() | final public void | info(Object pObject) | public void | info(Object message, Throwable obj) | public boolean | isDebugEnabled() | public boolean | isEnabledFor(int priority) | public void | safeDebug(String message, Object obj) | public void | safeDebug(String message, Object obj, Throwable throwable) | public void | safeError(String message, Object obj) | public void | safeError(String message, Object obj, Throwable throwable) | public void | safeFatal(String message, Object obj) | public void | safeFatal(String message, Object obj, Throwable throwable) | public void | safeInfo(String message, Object obj) | public void | safeInfo(String message, Object obj, Throwable throwable) | public void | safeWarn(String message, Object obj) | public void | safeWarn(String message, Object obj, Throwable throwable) | final public void | warn(Object pObject) | public void | warn(Object message, Throwable obj) |
debug | final public void debug(Object pObject)(Code) | | generate a message for loglevel DEBUG
Parameters: pObject - the message Object |
error | final public void error(Object pObject)(Code) | | generate a message for loglevel ERROR
Parameters: pObject - the message Object |
fatal | final public void fatal(Object pObject)(Code) | | generate a message for loglevel FATAL
Parameters: pObject - the message Object |
info | final public void info(Object pObject)(Code) | | generate a message for loglevel INFO
Parameters: pObject - the message Object |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | |
isEnabledFor | public boolean isEnabledFor(int priority)(Code) | | |
warn | final public void warn(Object pObject)(Code) | | generate a message for loglevel WARN
Parameters: pObject - the message Object |
|
|