Package org.slf4j.ext
Class XLoggerFactory
- java.lang.Object
-
- org.slf4j.ext.XLoggerFactory
-
public class XLoggerFactory extends java.lang.Object
This class is essentially a wrapper around anLoggerFactoryproducingXLoggerinstances.Contrary to
LoggerFactory.getLogger(String)method ofLoggerFactory, each call togetXLogger(String)produces a new instance ofXLogger. This should not matter because anXLoggerinstance does not have any state beyond that of theLoggerinstance it wraps.- Author:
- Ralph Goers, Ceki Gülcü
-
-
Constructor Summary
Constructors Constructor Description XLoggerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XLoggergetXLogger(java.lang.Class<?> clazz)Get a new XLogger instance by class.static XLoggergetXLogger(java.lang.String name)Get an XLogger instance by name.
-
-
-
Constructor Detail
-
XLoggerFactory
public XLoggerFactory()
-
-
Method Detail
-
getXLogger
public static XLogger getXLogger(java.lang.String name)
Get an XLogger instance by name.- Parameters:
name-- Returns:
- XLogger instance
-
getXLogger
public static XLogger getXLogger(java.lang.Class<?> clazz)
Get a new XLogger instance by class. The returned XLogger will be named after the class.- Parameters:
clazz-- Returns:
- XLogger instance by name
-
-