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.impl |
Log4j 2.0 private implementation classes.
|
org.apache.logging.log4j.spi |
Internal interfaces and classes to be used by authors of logging implementations.
|
Modifier and Type | Method and Description |
---|---|
static ThreadContext.ContextStack |
ThreadContext.cloneStack()
Returns a copy of this thread's stack.
|
ThreadContext.ContextStack |
ThreadContext.ContextStack.copy()
Returns a copy of the ContextStack.
|
static ThreadContext.ContextStack |
ThreadContext.getImmutableStack()
Get an immutable copy of this current thread's context stack.
|
Modifier and Type | Method and Description |
---|---|
ThreadContext.ContextStack |
LogEvent.getContextStack()
Get the NDC data.
|
Modifier and Type | Method and Description |
---|---|
ThreadContext.ContextStack |
BasicLogEventEntity.getContextStack()
Gets the context stack.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogEventWrapperEntity.setContextStack(ThreadContext.ContextStack contextStack)
A no-op mutator to satisfy JPA requirements, as this entity is write-only.
|
Modifier and Type | Method and Description |
---|---|
ThreadContext.ContextStack |
ContextStackJsonAttributeConverter.convertToEntityAttribute(String s) |
ThreadContext.ContextStack |
ContextStackAttributeConverter.convertToEntityAttribute(String s) |
Modifier and Type | Method and Description |
---|---|
String |
ContextStackJsonAttributeConverter.convertToDatabaseColumn(ThreadContext.ContextStack contextStack) |
String |
ContextStackAttributeConverter.convertToDatabaseColumn(ThreadContext.ContextStack contextStack) |
Modifier and Type | Method and Description |
---|---|
ThreadContext.ContextStack |
RingBufferLogEvent.getContextStack() |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
ThreadContext.ContextStack |
Log4jLogEvent.getContextStack()
Returns an immutable copy of the ThreadContext stack.
|
Modifier and Type | Method and Description |
---|---|
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,
Throwable t,
Map<String,String> mdc,
ThreadContext.ContextStack ndc,
String threadName,
StackTraceElement location,
long timestamp)
Constructor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ThreadContextStack |
Modifier and Type | Class and Description |
---|---|
class |
DefaultThreadContextStack
A copy-on-write thread-safe variant of
org.apache.logging.log4j.spi.ThreadContextStack in which all mutative
operations (add, pop, and so on) are implemented by making a fresh copy of
the underlying list. |
class |
MutableThreadContextStack |
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.