Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.0.
|
org.apache.logging.log4j.core |
Implementation of Log4j 2.0.
|
org.apache.logging.log4j.core.appender.db.jpa |
The JPA Appender supports writing log events to a relational database using the Java Persistence API.
|
org.apache.logging.log4j.core.appender.db.jpa.converter |
The converters in this package implement the JPA 2.1 mechanism for converting non-standard types to and from
database fields.
|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.0.
|
org.apache.logging.log4j.core.filter |
Log4j 2.0 Filter support.
|
org.apache.logging.log4j.core.impl |
Log4j 2.0 private implementation classes.
|
org.apache.logging.log4j.message |
Public Message Types used for Log4j 2.0.
|
org.apache.logging.log4j.simple |
Simple logging implementation.
|
org.apache.logging.log4j.spi |
Internal interfaces and classes to be used by authors of logging implementations.
|
org.apache.logging.log4j.status |
Status API for Log4j 2.0.
|
org.apache.logging.slf4j |
SLF4J support.
|
Modifier and Type | Method and Description |
---|---|
void |
Logger.debug(Marker marker,
Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Message msg,
Throwable t)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.error(Marker marker,
Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.fatal(Marker marker,
Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Message msg,
Throwable t)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.info(Marker marker,
Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Message msg,
Throwable t)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.log(Level level,
Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
Logger.trace(Marker marker,
Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Message msg,
Throwable t)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.warn(Marker marker,
Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Message msg,
Throwable t)
Logs a message with the specific Marker at the
WARN level. |
Modifier and Type | Method and Description |
---|---|
Message |
LogEvent.getMessage()
Get the message associated with the event.
|
Modifier and Type | Method and Description |
---|---|
Filter.Result |
Filter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Filter an event.
|
boolean |
Logger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
Logger.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
Message |
BasicLogEventEntity.getMessage()
Gets the message.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogEventWrapperEntity.setMessage(Message message)
A no-op mutator to satisfy JPA requirements, as this entity is write-only.
|
Modifier and Type | Method and Description |
---|---|
Message |
MessageAttributeConverter.convertToEntityAttribute(String s) |
Modifier and Type | Method and Description |
---|---|
String |
MessageAttributeConverter.convertToDatabaseColumn(Message message) |
Modifier and Type | Method and Description |
---|---|
Message |
RingBufferLogEvent.getMessage() |
Modifier and Type | Method and Description |
---|---|
void |
AsyncLogger.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t) |
void |
RingBufferLogEventTranslator.setValues(AsyncLogger asyncLogger,
String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
Throwable thrown,
Map<String,String> contextMap,
ThreadContext.ContextStack contextStack,
String threadName,
StackTraceElement location,
long currentTimeMillis) |
void |
RingBufferLogEvent.setValues(AsyncLogger asyncLogger,
String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
Throwable t,
Map<String,String> map,
ThreadContext.ContextStack contextStack,
String threadName,
StackTraceElement location,
long currentTimeMillis) |
Modifier and Type | Method and Description |
---|---|
void |
LoggerConfig.log(String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
Throwable t)
Logs an event.
|
Modifier and Type | Method and Description |
---|---|
Filter.Result |
ThresholdFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
BurstFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
MapFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
RegexFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
DynamicThresholdFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
StructuredDataFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
ThreadContextMapFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
MarkerFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
AbstractFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Appender Filter method.
|
Filter.Result |
CompositeFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Filter an event.
|
Modifier and Type | Method and Description |
---|---|
Message |
Log4jLogEvent.getMessage()
Returns the Message associated with the event.
|
Modifier and Type | Method and Description |
---|---|
LogEvent |
DefaultLogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
LogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
List<Property> properties,
Throwable t) |
static Log4jLogEvent |
Log4jLogEvent.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
ThrowableProxy t,
Map<String,String> mdc,
ThreadContext.ContextStack ndc,
String threadName,
StackTraceElement location,
long timestamp)
Create a new LogEvent.
|
Constructor and Description |
---|
Log4jLogEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
List<Property> properties,
Throwable t)
Constructor.
|
Log4jLogEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
Throwable t)
Constructor.
|
Log4jLogEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
Throwable t,
Map<String,String> mdc,
ThreadContext.ContextStack ndc,
String threadName,
StackTraceElement location,
long timestamp)
Constructor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MultiformatMessage
A Message that can render itself in more than one way.
|
Modifier and Type | Class and Description |
---|---|
class |
FormattedMessage
Handles messages that contain a format String.
|
class |
LocalizedMessage
This class is not the recommended way to Localize messages.
|
class |
MapMessage
Represents a Message that consists of a Map.
|
class |
MessageFormatMessage
Handles messages that consist of a format string conforming to java.text.MessageFormat.
|
class |
ObjectMessage
Handles messages that contain an Object.
|
class |
ParameterizedMessage
Handles messages that consist of a format string containing '{}' to represent each replaceable token, and
the parameters.
|
class |
SimpleMessage
The simplest possible implementation of Message.
|
class |
StringFormattedMessage
Handles messages that consist of a format string conforming to
Formatter . |
class |
StructuredDataMessage
Represents a Message that conforms to an RFC 5424 StructuredData element along with the syslog message.
|
class |
ThreadDumpMessage
Captures information about all running Threads.
|
Modifier and Type | Method and Description |
---|---|
protected Message |
FormattedMessage.getMessage(String msgPattern,
Object[] args,
Throwable throwable) |
Message |
AbstractMessageFactory.newMessage(Object message) |
Message |
MessageFactory.newMessage(Object message)
Creates a new message based on an Object.
|
Message |
AbstractMessageFactory.newMessage(String message) |
Message |
MessageFactory.newMessage(String message)
Creates a new message based on a String.
|
abstract Message |
AbstractMessageFactory.newMessage(String message,
Object... params) |
Message |
LocalizedMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
MessageFormatMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
ParameterizedMessageFactory.newMessage(String message,
Object... params)
Creates
ParameterizedMessage instances. |
Message |
StringFormatterMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
FormattedMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
MessageFactory.newMessage(String message,
Object... params)
Creates a new parameterized message.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
SimpleLogger.log(Marker marker,
String fqcn,
Level level,
Message msg,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogger.debug(Marker marker,
Message msg)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Message msg)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Message msg,
Throwable t)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.error(Marker marker,
Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.fatal(Marker marker,
Message msg)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Message msg)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Message msg,
Throwable t)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.info(Marker marker,
Message msg)
Logs a message with the specific Marker at the INFO level.
|
void |
AbstractLogger.info(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the INFO level.
|
void |
AbstractLogger.info(Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.info(Message msg,
Throwable t)
Logs a message with the specific Marker at the INFO level.
|
boolean |
AbstractLoggerWrapper.isEnabled(Level level,
Marker marker,
Message data,
Throwable t)
Detect if the event would be logged.
|
protected abstract boolean |
AbstractLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t)
Determine if logging is enabled.
|
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLoggerWrapper.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t)
Log an event.
|
abstract void |
AbstractLogger.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t)
Logs a message with location information.
|
void |
AbstractLogger.trace(Marker marker,
Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Message msg,
Throwable t)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.warn(Marker marker,
Message msg)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Message msg)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Message msg,
Throwable t)
Logs a message with the specific Marker at the WARN level.
|
Modifier and Type | Method and Description |
---|---|
Message |
StatusData.getMessage()
Returns the message associated with the event.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t) |
void |
StatusLogger.log(Marker marker,
String fqcn,
Level level,
Message msg,
Throwable t)
Add an event.
|
Constructor and Description |
---|
StatusData(StackTraceElement caller,
Level level,
Message msg,
Throwable t)
Creates the StatusData object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
SLF4JLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t) |
void |
SLF4JLogger.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t) |
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.