XLoggerFactory (SLF4J 1.7.4 API)
Date: 2013-03-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.slf4j.ext
Class XLoggerFactory

    java.lang.Object
      org.slf4j.ext.XLoggerFactory

    public class XLoggerFactory

extends Object

This class is essentially a wrapper around an `LoggerFactory` producing `XLogger` instances.

Contrary to `LoggerFactory.getLogger(String)` method of `LoggerFactory`, each call to `getXLogger(String)` produces a new instance of `XLogger`. This should not matter because an `XLogger` instance does not have any state beyond that of the `Logger` instance it wraps.

Author:
  Ralph Goers, Ceki Gülcü

Constructor Summary
`XLoggerFactory()`

Method Summary
`static XLogger` | `getXLogger(Class clazz)` Get a new XLogger instance by class.
`static XLogger` | `getXLogger(String name)` Get an XLogger instance by name.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### XLoggerFactory

    public XLoggerFactory()

Method Detail

### getXLogger

    public static XLogger getXLogger(String name)

  Get an XLogger instance by name.

  Parameters:
    `name` -
  Returns:
    XLogger instance

### getXLogger

    public static XLogger getXLogger(Class clazz)

  Get a new XLogger instance by class. The returned XLogger will be named after the class.

  Parameters:
    `clazz` -
  Returns:
    XLogger instance by name

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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