| org.apache.ojb.broker.util.logging.Logger
All known Subclasses: org.apache.ojb.broker.util.logging.PoorMansLoggerImpl, org.apache.ojb.broker.util.logging.Log4jLoggerImpl, org.apache.ojb.broker.util.logging.CommonsLoggerImpl,
Logger | public interface Logger extends Serializable,Configurable(Code) | | this interface defines the behaviour of a logging mechanism.
This API corresponds closely to the LOG4J Category Api.
By using this interface OJB remains free from Logger-Implementation
specific code.
|
Method Summary | |
void | configure(Configuration config) Configure this logging. | public void | debug(Object pObject) | public void | debug(Object message, Throwable obj) | public void | error(Object pObject) | public void | error(Object message, Throwable obj) | public void | fatal(Object pObject) | public void | fatal(Object message, Throwable obj) | public String | getName() | 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) Exception safe log method. | public void | safeDebug(String message, Object obj, Throwable t) Exception safe log method. | public void | safeError(String message, Object obj) Exception safe log method. | public void | safeError(String message, Object obj, Throwable t) Exception safe log method. | public void | safeFatal(String message, Object obj) Exception safe log method. | public void | safeFatal(String message, Object obj, Throwable t) Exception safe log method. | public void | safeInfo(String message, Object obj) Exception safe log method. | public void | safeInfo(String message, Object obj, Throwable t) Exception safe log method. | public void | safeWarn(String message, Object obj) Exception safe log method. | public void | safeWarn(String message, Object obj, Throwable t) Exception safe log method. | public void | warn(Object pObject) | public void | warn(Object message, Throwable obj) |
DEBUG | final public static int DEBUG(Code) | | |
ERROR | final public static int ERROR(Code) | | |
FATAL | final public static int FATAL(Code) | | |
INFO | final public static int INFO(Code) | | |
WARN | final public static int WARN(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
debug | public void debug(Object pObject)(Code) | | generate a message for loglevel DEBUG
Parameters: pObject - the message Object |
error | public void error(Object pObject)(Code) | | generate a message for loglevel ERROR
Parameters: pObject - the message Object |
fatal | public void fatal(Object pObject)(Code) | | generate a message for loglevel FATAL
Parameters: pObject - the message Object |
getName | public String getName()(Code) | | returns the name of the logger isntance
|
info | 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) | | |
safeDebug | public void safeDebug(String message, Object obj)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : DEBUG
|
safeDebug | public void safeDebug(String message, Object obj, Throwable t)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : DEBUG
|
safeError | public void safeError(String message, Object obj)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : ERROR
|
safeError | public void safeError(String message, Object obj, Throwable t)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : ERROR
|
safeFatal | public void safeFatal(String message, Object obj)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : FATAL
|
safeFatal | public void safeFatal(String message, Object obj, Throwable t)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : FATAL
|
safeInfo | public void safeInfo(String message, Object obj)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : INFO
|
safeInfo | public void safeInfo(String message, Object obj, Throwable t)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : INFO
|
safeWarn | public void safeWarn(String message, Object obj)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : WARN
|
safeWarn | public void safeWarn(String message, Object obj, Throwable t)(Code) | | Exception safe log method.
This method can be used to prevent any exception thrown by obj.toString() implementations.
Log level used : WARN
|
warn | public void warn(Object pObject)(Code) | | generate a message for loglevel WARN
Parameters: pObject - the message Object |
|
|