Package org.slf4j.ext
Class XLoggerFactory
java.lang.Object
org.slf4j.ext.XLoggerFactory
This class is essentially a wrapper around an
LoggerFactory
producing XLogger
instances.
Contrary to LoggerFactory.getLogger(String)
method of
LoggerFactory
, each call to getXLogger(String)
produces a new instance of XLogger
. This should not matter
because an XLogger
instance does not have any state beyond that of
the Logger
instance it wraps.
- Author:
- Ralph Goers, Ceki Gülcü
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XLogger
getXLogger
(Class<?> clazz) Get a new XLogger instance by class.static XLogger
getXLogger
(String name) Get an XLogger instance by name.
-
Constructor Details
-
XLoggerFactory
public XLoggerFactory()
-
-
Method Details
-
getXLogger
Get an XLogger instance by name.- Parameters:
name
-- Returns:
- XLogger instance
-
getXLogger
Get a new XLogger instance by class. The returned XLogger will be named after the class.- Parameters:
clazz
-- Returns:
- XLogger instance by name
-