| java.lang.Object org.jpox.util.JPOXLogger org.jpox.util.Log4JLogger
Log4JLogger | public class Log4JLogger extends JPOXLogger (Code) | | Log4J implementation of a JPOXLogger.
See http://logging.apache.org/log4j for details of Log4J.
Assumes that all configuration of the loggers are done by external
configuration (System property "log4j.configuration").
Maps JPOX logging levels as follows :
- debug maps to Log4J DEBUG
- info maps to Log4J INFO
- warn maps to Log4J WARN
- error maps to Log4J ERROR
- fatal maps to Log4J FATAL
version: $Revision: 1.4 $ |
Constructor Summary | |
public | Log4JLogger(String logName) Constructor for a JPOXLogger using Log4J. |
Log4JLogger | public Log4JLogger(String logName)(Code) | | Constructor for a JPOXLogger using Log4J.
Parameters: logName - Name of the logging category |
debug | public void debug(Object msg)(Code) | | Log a debug message.
Parameters: msg - The message |
debug | public void debug(Object msg, Throwable thr)(Code) | | Log a debug message with throwable.
Parameters: msg - The message Parameters: thr - A throwable |
error | public void error(Object msg)(Code) | | Log an error message.
Parameters: msg - The message |
error | public void error(Object msg, Throwable thr)(Code) | | Log an error message with throwable.
Parameters: msg - The message Parameters: thr - A throwable |
fatal | public void fatal(Object msg)(Code) | | Log an fatal message.
Parameters: msg - The message |
fatal | public void fatal(Object msg, Throwable thr)(Code) | | Log a fatal message with throwable.
Parameters: msg - The message Parameters: thr - A throwable |
info | public void info(Object msg)(Code) | | Log an info message.
Parameters: msg - The message |
info | public void info(Object msg, Throwable thr)(Code) | | Log an info message with throwable.
Parameters: msg - The message Parameters: thr - A throwable |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | Accessor for whether debug logging is enabled
Whether it is enabled |
isInfoEnabled | public boolean isInfoEnabled()(Code) | | Accessor for whether info logging is enabled
Whether it is enabled |
warn | public void warn(Object msg)(Code) | | Log a warning message.
Parameters: msg - The message |
warn | public void warn(Object msg, Throwable thr)(Code) | | Log a warning message with throwable.
Parameters: msg - The message Parameters: thr - A throwable |
|
|