LocLoggerFactory (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.cal10n
Class LocLoggerFactory

    java.lang.Object
      org.slf4j.cal10n.LocLoggerFactory

    public class LocLoggerFactory

extends Object

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

Contrary to `LoggerFactory.getLogger(String)` method of `LoggerFactory`, each call to `getLocLogger` produces a new instance of `LocLogger`. This should not matter because a LocLogger instance does have any state beyond that of the `Logger` in stance it wraps and its message conveyor.

Author:
  Ceki Gücü

Constructor Summary
`LocLoggerFactory(ch.qos.cal10n.IMessageConveyor imc)`

Method Summary
`LocLogger` | `getLocLogger(Class clazz)` Get a new LocLogger instance by class.
`LocLogger` | `getLocLogger(String name)` Get an LocLogger instance by name.

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

Constructor Detail

### LocLoggerFactory

    public LocLoggerFactory(ch.qos.cal10n.IMessageConveyor imc)

Method Detail

### getLocLogger

    public LocLogger getLocLogger(String name)

  Get an LocLogger instance by name.

  Parameters:
    `name` -
  Returns:
    LocLogger instance by name.

### getLocLogger

    public LocLogger getLocLogger(Class clazz)

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

  Parameters:
    `clazz` -
  Returns:
    LocLogger instance by class

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.