Package org.slf4j.cal10n
Class LocLoggerFactory
java.lang.Object
org.slf4j.cal10n.LocLoggerFactory
This class is essentially a wrapper around an
LoggerFactory
producing
LocLogger
instances.
Contrary to LoggerFactory.getLogger(String)
method of
LoggerFactory
, each call to getLocLogger(String)
produces a new
instance of LocLogger
. This should not matter because a LocLogger
instance does have any state beyond that of the Logger
instance it
wraps and its message conveyor.
- Author:
- Ceki Gülcü
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocLogger
(Class<?> clazz) Get a new LocLogger instance by class.getLocLogger
(String name) Get an LocLogger instance by name.
-
Constructor Details
-
LocLoggerFactory
-
-
Method Details
-
getLocLogger
Get an LocLogger instance by name.- Parameters:
name
- name of the logger to retrieve- Returns:
- LocLogger instance by name.
-
getLocLogger
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
-