net.sf.wraplog
Class Log4jLogger
java.lang.Object
net.sf.wraplog.AbstractLogger
net.sf.wraplog.Log4jLogger
- public class Log4jLogger
- extends AbstractLogger
Logger to delaget to Log4j.
- Author:
- Thomas Aglassinger
Methods inherited from class net.sf.wraplog.AbstractLogger |
checkLevel, debug, debug, debug, debug, error, error, error, error, getLevel, getLoggedMessageCount, handleError, handleError, info, info, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, setLevel, setLoggingErrorHandler, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jLogger
public Log4jLogger(String name)
Log4jLogger
public Log4jLogger(Class clazz)
getLog4jLogger
protected static org.apache.log4j.Logger getLog4jLogger(String name)
reallyLog
protected void reallyLog(int logLevel,
String message,
Throwable error)
throws Exception
- Description copied from class:
AbstractLogger
- Log a message and optional error details.
- Specified by:
reallyLog
in class AbstractLogger
- Parameters:
logLevel
- one of: Level.DEBUG, Level.INFO, Level.WARN, Level.ERRORmessage
- the actual message; this will never be null
error
- an error that is related to the message; unless
null
, the name and stack trace of the error
are logged
- Throws:
Exception