org.slf4j.ext

Class XLogger

public class XLogger extends LoggerWrapper implements Logger

A utility that provides standard mechanisms for logging certain kinds of activities.

Author: Ralph Goers Ceki Gülcü

Nested Class Summary
static classXLogger.Level
Constructor Summary
XLogger(Logger logger)
Given an underlying logger, construct an XLogger
Method Summary
voidcatching(Throwable throwable)
Log an exception being caught.
voidcatching(XLogger.Level level, Throwable throwable)
Log an exception being caught allowing the log level to be specified.
voidentry(Object... argArray)
Log method entry.
voidexit()
Log method exit
voidexit(Object result)
Log method exit
voidthrowing(Throwable throwable)
Log an exception being thrown.
voidthrowing(XLogger.Level level, Throwable throwable)
Log an exception being thrown allowing the log level to be specified.

Constructor Detail

XLogger

public XLogger(Logger logger)
Given an underlying logger, construct an XLogger

Parameters: logger underlying logger

Method Detail

catching

public void catching(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, 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.

entry

public void entry(Object... argArray)
Log method entry.

Parameters: argArray supplied parameters

exit

public void exit()
Log method exit

exit

public void exit(Object result)
Log method exit

Parameters: result The result of the method being exited

throwing

public void throwing(Throwable throwable)
Log an exception being thrown. The generated log event uses Level ERROR.

Parameters: throwable the exception being caught.

throwing

public void throwing(XLogger.Level level, Throwable 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.

Copyright © 2005-2010 QOS.ch. All Rights Reserved.