public class Slf4jLoggerFacade extends LoggerFacade
LoggerFactory
. In order to use SLF4J
as the logging facade for Restlet, you need to set the
"org.restlet.engine.loggerFacadeClass" system property with the
"org.restlet.ext.slf4j.Slf4jLoggerFacade" value.Slf4jLogger
Constructor and Description |
---|
Slf4jLoggerFacade() |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Logger |
getAnonymousLogger()
Returns an instance of
Slf4jLogger , wrapping the result of
LoggerFactory.getLogger(String) where the logger name is "". |
java.util.logging.Logger |
getLogger(java.lang.String loggerName)
Returns an instance of
Slf4jLogger , wrapping the result of
LoggerFactory.getLogger(String) with the logger name. |
getLogger, getLogger, getLogger
public java.util.logging.Logger getAnonymousLogger()
Slf4jLogger
, wrapping the result of
LoggerFactory.getLogger(String)
where the logger name is "".getAnonymousLogger
in class LoggerFacade
public java.util.logging.Logger getLogger(java.lang.String loggerName)
Slf4jLogger
, wrapping the result of
LoggerFactory.getLogger(String)
with the logger name.getLogger
in class LoggerFacade
loggerName
- The logger name.Copyright © 2005-2020 Restlet.