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 anLoggerFactory
producingLocLogger
instances.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 theLogger
instance it wraps and its message conveyor.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ch.qos.cal10n.IMessageConveyor
imc
-
Constructor Summary
Constructors Constructor Description LocLoggerFactory(ch.qos.cal10n.IMessageConveyor imc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocLogger
getLocLogger(java.lang.Class<?> clazz)
Get a new LocLogger instance by class.LocLogger
getLocLogger(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
-
-