Class Slf4jLoggerFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
-
- All Implemented Interfaces:
Service,LoggerFactory
@Named("slf4j") public class Slf4jLoggerFactory extends java.lang.Object implements LoggerFactory, ServiceA logger factory that delegates to SLF4J logging.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSlf4jLoggerFactory.Slf4jLoggerprivate static classSlf4jLoggerFactory.Slf4jLoggerEx
-
Constructor Summary
Constructors Constructor Description Slf4jLoggerFactory()Creates an instance of this logger factory.Slf4jLoggerFactory(org.slf4j.ILoggerFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.slf4j.ILoggerFactorygetFactory()LoggergetLogger(java.lang.String name)Gets a logger for a class with the specified name.voidinitService(ServiceLocator locator)Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.static booleanisSlf4jAvailable()Slf4jLoggerFactorysetLoggerFactory(org.slf4j.ILoggerFactory factory)
-
-
-
Method Detail
-
isSlf4jAvailable
public static boolean isSlf4jAvailable()
-
initService
public void initService(ServiceLocator locator)
Description copied from interface:ServiceProvides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initServicein interfaceService- Parameters:
locator- The service locator, must not benull.
-
setLoggerFactory
public Slf4jLoggerFactory setLoggerFactory(org.slf4j.ILoggerFactory factory)
-
getLogger
public Logger getLogger(java.lang.String name)
Description copied from interface:LoggerFactoryGets a logger for a class with the specified name.- Specified by:
getLoggerin interfaceLoggerFactory- Parameters:
name- The name of the class requesting a logger, must not benull.- Returns:
- The requested logger, never
null.
-
getFactory
private org.slf4j.ILoggerFactory getFactory()
-
-