Package org.slf4j.ext
Class XLogger
- java.lang.Object
-
- org.slf4j.ext.LoggerWrapper
-
- org.slf4j.ext.XLogger
-
- All Implemented Interfaces:
org.slf4j.Logger
public class XLogger extends LoggerWrapper implements org.slf4j.Logger
A utility that provides standard mechanisms for logging certain kinds of activities.- Author:
- Ralph Goers, Ceki Gülcü
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXLogger.Level
-
Field Summary
-
Fields inherited from class org.slf4j.ext.LoggerWrapper
instanceofLAL, logger
-
-
Constructor Summary
Constructors Constructor Description XLogger(org.slf4j.Logger logger)Given an underlying logger, construct an XLogger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcatching(java.lang.Throwable throwable)Log an exception being caught.voidcatching(XLogger.Level level, java.lang.Throwable throwable)Log an exception being caught allowing the log level to be specified.voidentry(java.lang.Object... argArray)Log method entry.voidexit()Log method exit<T> Texit(T result)Log method exit<T extends java.lang.Throwable>
Tthrowing(XLogger.Level level, T throwable)Log an exception being thrown allowing the log level to be specified.<T extends java.lang.Throwable>
Tthrowing(T throwable)Log an exception being thrown.-
Methods inherited from class org.slf4j.ext.LoggerWrapper
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Constructor Detail
-
XLogger
public XLogger(org.slf4j.Logger logger)
Given an underlying logger, construct an XLogger- Parameters:
logger- underlying logger
-
-
Method Detail
-
entry
public void entry(java.lang.Object... argArray)
Log method entry.- Parameters:
argArray- supplied parameters
-
exit
public void exit()
Log method exit
-
exit
public <T> T exit(T result)
Log method exit- Parameters:
result- The result of the method being exited
-
throwing
public <T extends java.lang.Throwable> T throwing(T throwable)
Log an exception being thrown. The generated log event uses Level ERROR.- Parameters:
throwable- the exception being caught.
-
throwing
public <T extends java.lang.Throwable> T throwing(XLogger.Level level, T throwable)
Log an exception being thrown allowing the log level to be specified.- Parameters:
level- the logging level to use.throwable- the exception being caught.
-
catching
public void catching(java.lang.Throwable throwable)
Log an exception being caught. The generated log event uses Level ERROR.- Parameters:
throwable- the exception being caught.
-
catching
public void catching(XLogger.Level level, java.lang.Throwable throwable)
Log an exception being caught allowing the log level to be specified.- Parameters:
level- the logging level to use.throwable- the exception being caught.
-
-