Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
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 or for internal use by
API classes.
|
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 |
AbstractLogEvent.getMessage() |
Message |
LogEvent.getMessage()
Gets 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 message,
Throwable t) |
void |
Logger.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
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.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable thrown) |
void |
RingBufferLogEvent.setValues(AsyncLogger asyncLogger,
String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
Throwable throwable,
Map<String,String> map,
ThreadContext.ContextStack contextStack,
String threadName,
StackTraceElement location,
long currentTimeMillis) |
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) |
Modifier and Type | Method and Description |
---|---|
void |
LoggerConfig.log(String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t)
Logs an event.
|
Modifier and Type | Method and Description |
---|---|
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 |
AbstractFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Appender Filter method.
|
Filter.Result |
MarkerFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
ThresholdFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Filter.Result |
CompositeFilter.filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Filter an event.
|
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 |
DynamicThresholdFilter.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) |
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 loggerFQCN,
Level level,
Message message,
Throwable thrown,
ThrowableProxy thrownProxy,
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 loggerFQCN,
Level level,
Message message,
List<Property> properties,
Throwable t)
Constructor.
|
Log4jLogEvent(String loggerName,
Marker marker,
String loggerFQCN,
Level level,
Message message,
Throwable t)
Constructor.
|
Log4jLogEvent(String loggerName,
Marker marker,
String loggerFQCN,
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
Provides some level of compatibility with Log4j 1.x and convenience but 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 |
MessageFactory.newMessage(Object message)
Creates a new message based on an Object.
|
Message |
AbstractMessageFactory.newMessage(Object message) |
Message |
MessageFactory.newMessage(String message)
Creates a new message based on a String.
|
Message |
AbstractMessageFactory.newMessage(String message) |
Message |
StringFormatterMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
ParameterizedMessageFactory.newMessage(String message,
Object... params)
Creates
ParameterizedMessage instances. |
Message |
LocalizedMessageFactory.newMessage(String key,
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.
|
Message |
MessageFormatMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
abstract Message |
AbstractMessageFactory.newMessage(String message,
Object... params) |
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
SimpleLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
protected Message |
AbstractLogger.catchingMsg(Throwable t) |
protected Message |
AbstractLogger.entryMsg(int count,
Object... params) |
protected Message |
AbstractLogger.exitMsg(Object result) |
protected Message |
AbstractLogger.throwingMsg(Throwable t) |
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 the specified Message at the DEBUG level.
|
void |
AbstractLogger.debug(Message msg,
Throwable t)
Logs the specified Message 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 the specified Message at the
ERROR level. |
void |
AbstractLogger.error(Message msg,
Throwable t)
Logs the specified Message 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 the specified Message at the FATAL level.
|
void |
AbstractLogger.fatal(Message msg,
Throwable t)
Logs the specified Message 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 the specified Message at the INFO level.
|
void |
AbstractLogger.info(Message msg,
Throwable t)
Logs the specified Message at the INFO level.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Detect if the event would be logged.
|
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 the specified Message at the given level.
|
void |
AbstractLogger.log(Level level,
Message msg,
Throwable t)
Logs the specified Message at the given level.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Logs a message if the specified level is active.
|
void |
ExtendedLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always logs a message at the specified level.
|
void |
ExtendedLoggerWrapper.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always log an event.
|
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 the specified Message at the TRACE level.
|
void |
AbstractLogger.trace(Message msg,
Throwable t)
Logs the specified Message 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 the specified Message at the WARN level.
|
void |
AbstractLogger.warn(Message msg,
Throwable t)
Logs the specified Message 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 |
---|---|
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t) |
void |
StatusLogger.logMessage(String fqcn,
Level level,
Marker marker,
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 |
---|---|
Message |
EventDataConverter.convertEvent(String message,
Object[] objects,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
boolean |
SLF4JLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t) |
void |
SLF4JLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
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.