| Package | Description |
|---|---|
| org.apache.log4j |
An rather minimal but sufficient implementation redirecting all
calls to a log4j logger to a logback logger.
|
| org.slf4j |
Core logging interfaces.
|
| org.slf4j.bridge |
Bridge/route all JUL log records to the SLF4J API.
|
| org.slf4j.cal10n |
SLF4J API extensions
|
| org.slf4j.event | |
| org.slf4j.ext |
Localized logging using the CAL10N API.
|
| org.slf4j.helpers |
Helper classes.
|
| org.slf4j.impl |
Implementations of core logging interfaces defined in the
org.slf4j package. |
| org.slf4j.profiler |
Poor man's profiler API
|
| org.slf4j.spi |
Classes and interfaces which are internal to SLF4J.
|
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
Category.slf4jLogger |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
LoggerFactory.getLogger(Class<?> clazz)
Return a logger named corresponding to the class passed as parameter,
using the statically bound
ILoggerFactory instance. |
static Logger |
LoggerFactory.getLogger(String name)
Return a logger named according to the name parameter using the
statically bound
ILoggerFactory instance. |
Logger |
ILoggerFactory.getLogger(String name)
Return an appropriate
Logger instance as specified by the
name parameter. |
| Modifier and Type | Method and Description |
|---|---|
protected Logger |
SLF4JBridgeHandler.getSLF4JLogger(LogRecord record)
Return the Logger instance that will be used for logging.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SLF4JBridgeHandler.callPlainSLF4JLogger(Logger slf4jLogger,
LogRecord record) |
| Modifier and Type | Class and Description |
|---|---|
class |
LocLogger
A logger specialized in localized logging.
|
| Constructor and Description |
|---|
LocLogger(Logger logger,
ch.qos.cal10n.IMessageConveyor imc) |
| Modifier and Type | Class and Description |
|---|---|
class |
EventRecodingLogger |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggerWrapper
A helper class wrapping an
Logger instance preserving
location information if the wrapped instance supports it. |
class |
XLogger
A utility that provides standard mechanisms for logging certain kinds of
activities.
|
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
LoggerWrapper.logger |
| Constructor and Description |
|---|
LoggerWrapper(Logger logger,
String fqcn) |
XLogger(Logger logger)
Given an underlying logger, construct an XLogger
|
| Modifier and Type | Class and Description |
|---|---|
class |
MarkerIgnoringBase
This class serves as base for adapters or native implementations of logging systems
lacking Marker support.
|
class |
NOPLogger
A direct NOP (no operation) implementation of
Logger. |
class |
SubstituteLogger
A logger implementation which logs via a delegate logger.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
SubstituteLoggerFactory.getLogger(String name) |
Logger |
NOPLoggerFactory.getLogger(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
SubstituteLogger.setDelegate(Logger delegate)
Typically called after the
LoggerFactory initialization phase is completed. |
| Modifier and Type | Class and Description |
|---|---|
class |
JCLLoggerAdapter
A wrapper over
org.apache.commons.logging.Log in conformance with the Logger
interface. |
class |
JDK14LoggerAdapter
A wrapper over
java.util.logging.Logger in
conformity with the Logger interface. |
class |
Log4jLoggerAdapter
A wrapper over
org.apache.log4j.Logger in
conforming to the Logger interface. |
class |
SimpleLogger
Simple implementation of
Logger that sends all enabled log messages,
for all defined loggers, to the console (System.err). |
| Modifier and Type | Method and Description |
|---|---|
Logger |
JCLLoggerFactory.getLogger(String name) |
Logger |
Log4jLoggerFactory.getLogger(String name) |
Logger |
JDK14LoggerFactory.getLogger(String name) |
Logger |
SimpleLoggerFactory.getLogger(String name)
Return an appropriate
SimpleLogger instance by name. |
| Modifier and Type | Method and Description |
|---|---|
Logger |
Profiler.getLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
Profiler.setLogger(Logger logger) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
LocationAwareLogger
An optional interface helping integration with logging systems capable of
extracting location information.
|
Copyright © 2005–2017 QOS.ch. All rights reserved.