Package org.apache.qpid.protonj2.logging
Class Slf4JLoggerFactory
java.lang.Object
org.apache.qpid.protonj2.logging.ProtonLoggerFactory
org.apache.qpid.protonj2.logging.Slf4JLoggerFactory
Slf4j adapter class used to proxy calls to the slf4j logger
factory and create ProtonLogger wrappers around the Loggers
for that library.
-
Method Summary
Modifier and TypeMethodDescriptionprotected ProtonLogger
createLoggerWrapper
(String name) static ProtonLoggerFactory
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 Details
-
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
- Specified by:
createLoggerWrapper
in classProtonLoggerFactory
-