Package org.slf4j.cal10n
Class LocLoggerFactory
- java.lang.Object
-
- org.slf4j.cal10n.LocLoggerFactory
-
public class LocLoggerFactory extends java.lang.ObjectThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ch.qos.cal10n.IMessageConveyorimc
-
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.
-
-
-
Method Detail
-
getLocLogger
public LocLogger getLocLogger(java.lang.String name)
Get an LocLogger instance by name.- Parameters:
name-- 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-- Returns:
- LocLogger instance by class
-
-