Package org.apache.qpid.protonj2.logging
Class Slf4JLoggerFactory
- java.lang.Object
-
- org.apache.qpid.protonj2.logging.ProtonLoggerFactory
-
- org.apache.qpid.protonj2.logging.Slf4JLoggerFactory
-
public class Slf4JLoggerFactory extends ProtonLoggerFactory
Slf4j adapter class used to proxy calls to the slf4j logger factory and create ProtonLogger wrappers around the Loggers for that library.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProtonLogger
createLoggerWrapper(String name)
static ProtonLoggerFactory
findLoggerFactory()
Static factory method that will create the correct Slf4j logging factory and return it or throw anNoClassDefFoundError
if none found.-
Methods inherited from class org.apache.qpid.protonj2.logging.ProtonLoggerFactory
getLogger, getLogger, getLoggerFactory, setLoggerFactory
-
-
-
-
Method Detail
-
findLoggerFactory
public static ProtonLoggerFactory findLoggerFactory()
Static factory method that will create the correct Slf4j logging factory and return it or throw anNoClassDefFoundError
if none found.- Returns:
- a correct proton based logger factory wrapper.
-
createLoggerWrapper
protected ProtonLogger createLoggerWrapper(String name)
- Specified by:
createLoggerWrapper
in classProtonLoggerFactory
-
-