Package org.slf4j.cal10n
Class LocLoggerFactory
- java.lang.Object
-
- org.slf4j.cal10n.LocLoggerFactory
-
public class LocLoggerFactory extends java.lang.Object
This class is essentially a wrapper around anLoggerFactoryproducingLocLoggerinstances.Contrary to
LoggerFactory.getLogger(String)method ofLoggerFactory, each call togetLocLogger(String)produces a new instance ofLocLogger. This should not matter because a LocLogger instance does have any state beyond that of theLoggerinstance it wraps and its message conveyor.- Author:
- Ceki Gülcü
-
-
Constructor Summary
Constructors Constructor Description LocLoggerFactory(ch.qos.cal10n.IMessageConveyor imc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocLoggergetLocLogger(java.lang.Class<?> clazz)Get a new LocLogger instance by class.LocLoggergetLocLogger(java.lang.String name)Get an LocLogger instance by name.
-
-
-
Constructor Detail
-
LocLoggerFactory
public LocLoggerFactory(ch.qos.cal10n.IMessageConveyor imc)
-
-
Method Detail
-
getLocLogger
public LocLogger getLocLogger(java.lang.String name)
Get an LocLogger instance by name.- Parameters:
name- name of the logger to retrieve- Returns:
- LocLogger instance by name.
-
getLocLogger
public LocLogger getLocLogger(java.lang.Class<?> clazz)
Get a new LocLogger instance by class. The returned LocLogger will be named after the class.- Parameters:
clazz- a class- Returns:
- LocLogger instance by class
-
-