@Named(value="slf4j") public class Slf4jLoggerFactory extends Object implements LoggerFactory, Service
| Constructor and Description |
|---|
Slf4jLoggerFactory()
Creates an instance of this logger factory.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger(String name)
Gets a logger for a class with the specified name.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
static boolean |
isSlf4jAvailable() |
Slf4jLoggerFactory |
setLoggerFactory(org.slf4j.ILoggerFactory factory) |
public Slf4jLoggerFactory()
public static boolean isSlf4jAvailable()
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public Slf4jLoggerFactory setLoggerFactory(org.slf4j.ILoggerFactory factory)
public Logger getLogger(String name)
LoggerFactorygetLogger in interface LoggerFactoryname - The name of the class requesting a logger, must not be null.null.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.