Package | Description |
---|---|
org.apache.log4j.layout | |
org.apache.log4j.pattern | |
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.appender.db |
The classes in this package and sub packages provide appenders for various types of databases and methods for
accessing databases.
|
org.apache.logging.log4j.core.appender.db.jdbc |
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
|
org.apache.logging.log4j.core.appender.mom |
Message oriented middleware appenders.
|
org.apache.logging.log4j.core.appender.mom.jeromq |
Classes and interfaces for ZeroMQ/JeroMQ support.
|
org.apache.logging.log4j.core.appender.nosql |
The NoSQL Appender supports writing log events to NoSQL databases.
|
org.apache.logging.log4j.core.appender.rewrite |
Apache Flume Appender.
|
org.apache.logging.log4j.core.appender.rolling |
Rolling File Appender and support classes.
|
org.apache.logging.log4j.core.appender.routing |
Apache Flume Appender.
|
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.
|
org.apache.logging.log4j.core.config.plugins.util |
Utility and manager classes for Log4j 2 plugins.
|
org.apache.logging.log4j.core.config.plugins.visitors |
Visitor classes for extracting values from a Configuration or Node corresponding to a plugin annotation.
|
org.apache.logging.log4j.core.filter |
Log4j 2 Filter support.
|
org.apache.logging.log4j.core.impl |
Log4j 2 private implementation classes.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.core.lookup |
Log4j 2 Lookups.
|
org.apache.logging.log4j.core.net |
Log4j 2 network support.
|
org.apache.logging.log4j.core.parser |
Parsers for the output of various layouts.
|
org.apache.logging.log4j.core.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.logging.log4j.web |
The classes in this package are responsible for properly initializing and deinitializing Log4j in a Java EE web
application.
|
org.apache.logging.log4j.web.appender |
Modifier and Type | Method | Description |
---|---|---|
void |
Log4j1XmlLayout.encode(LogEvent event,
ByteBufferDestination destination) |
|
String |
Log4j1XmlLayout.toSerializable(LogEvent event) |
Modifier and Type | Method | Description |
---|---|---|
void |
Log4j1MdcPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
Log4j1NdcPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractLogEvent |
An abstract log event implementation with default values for all methods.
|
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
AbstractLogEvent.toImmutable() |
Subclasses should implement this method to provide an immutable version.
|
LogEvent |
LogEvent.toImmutable() |
Returns an immutable version of this log event, which MAY BE a copy of this event.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Appender.append(LogEvent event) |
Logs a LogEvent using whatever logic this Appender wishes to use.
|
void |
ErrorHandler.error(String msg,
LogEvent event,
Throwable t) |
Handle an error with a message, and exception and a logging event.
|
Filter.Result |
Filter.filter(LogEvent event) |
Filter an event.
|
void |
LogEventListener.log(LogEvent event) |
|
void |
Logger.PrivateConfig.logEvent(LogEvent event) |
|
byte[] |
Layout.toByteArray(LogEvent event) |
Formats the event suitable for display.
|
T |
Layout.toSerializable(LogEvent event) |
Formats the event as an Object that can be serialized.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractOutputStreamAppender.append(LogEvent event) |
Actual writing occurs here.
|
void |
AbstractWriterAppender.append(LogEvent event) |
Actual writing occurs here.
|
void |
AsyncAppender.append(LogEvent logEvent) |
Actual writing occurs here.
|
void |
CountingNoOpAppender.append(LogEvent event) |
|
void |
FailoverAppender.append(LogEvent event) |
Handle the Log event.
|
void |
HttpAppender.append(LogEvent event) |
|
void |
MemoryMappedFileAppender.append(LogEvent event) |
Write the log entry rolling over the file when required.
|
void |
NullAppender.append(LogEvent event) |
|
void |
RandomAccessFileAppender.append(LogEvent event) |
Write the log entry rolling over the file when required.
|
void |
RollingFileAppender.append(LogEvent event) |
Writes the log entry rolling over the file when required.
|
void |
RollingRandomAccessFileAppender.append(LogEvent event) |
Write the log entry rolling over the file when required.
|
void |
ScriptAppenderSelector.append(LogEvent event) |
|
void |
SmtpAppender.append(LogEvent event) |
Perform SmtpAppender specific appending actions, mainly adding the event
to a cyclic buffer and checking if the event triggers an e-mail to be
sent.
|
protected void |
AbstractOutputStreamAppender.directEncodeEvent(LogEvent event) |
|
protected void |
SocketAppender.directEncodeEvent(LogEvent event) |
|
void |
AbstractAppender.error(String msg,
LogEvent event,
Throwable t) |
Handle an error with a message, exception, and a logging event, using the
ErrorHandler configured for
this Appender. |
void |
DefaultErrorHandler.error(String msg,
LogEvent event,
Throwable t) |
Handle an error with a message, and exception and a logging event.
|
boolean |
SmtpAppender.isFiltered(LogEvent event) |
Capture all events in CyclicBuffer.
|
void |
AsyncAppender.logMessageInBackgroundThread(LogEvent logEvent) |
FOR INTERNAL USE ONLY.
|
void |
AsyncAppender.logMessageInCurrentThread(LogEvent logEvent) |
FOR INTERNAL USE ONLY.
|
abstract void |
HttpManager.send(Layout<?> layout,
LogEvent event) |
|
void |
HttpURLConnectionManager.send(Layout<?> layout,
LogEvent event) |
|
protected Serializable |
AbstractAppender.toSerializable(LogEvent event) |
Serializes the given event using the appender's layout if present.
|
protected void |
AbstractOutputStreamAppender.writeByteArrayToManager(LogEvent event) |
Modifier and Type | Method | Description |
---|---|---|
AsyncAppender.Builder |
AsyncAppender.Builder.setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory) |
Modifier and Type | Method | Description |
---|---|---|
Layout<LogEvent> |
AbstractDatabaseAppender.getLayout() |
This always returns
null , as database appenders do not use a single layout. |
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractDatabaseAppender.append(LogEvent event) |
|
void |
AbstractDatabaseManager.write(LogEvent event) |
Deprecated.
since 2.11.0 Use
AbstractDatabaseManager.write(LogEvent, Serializable) . |
void |
AbstractDatabaseManager.write(LogEvent event,
Serializable serializable) |
This method manages buffering and writing of events.
|
protected abstract void |
AbstractDatabaseManager.writeInternal(LogEvent event) |
Deprecated.
|
protected abstract void |
AbstractDatabaseManager.writeInternal(LogEvent event,
Serializable serializable) |
Performs the actual writing of the event in an implementation-specific way.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
JdbcDatabaseManager.writeInternal(LogEvent event) |
Deprecated.
|
protected void |
JdbcDatabaseManager.writeInternal(LogEvent event,
Serializable serializable) |
Modifier and Type | Method | Description |
---|---|---|
void |
JmsAppender.append(LogEvent event) |
Modifier and Type | Method | Description |
---|---|---|
void |
JeroMqAppender.append(LogEvent event) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
NoSqlDatabaseManager.writeInternal(LogEvent event) |
Deprecated.
|
protected void |
NoSqlDatabaseManager.writeInternal(LogEvent event,
Serializable serializable) |
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
LoggerNameLevelRewritePolicy.rewrite(LogEvent event) |
|
LogEvent |
MapRewritePolicy.rewrite(LogEvent source) |
Rewrite the event.
|
LogEvent |
PropertiesRewritePolicy.rewrite(LogEvent source) |
Rewrites the event.
|
LogEvent |
RewritePolicy.rewrite(LogEvent source) |
Rewrite a logging event.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RewriteAppender.append(LogEvent event) |
Modifies the event and pass to the subordinate Appenders.
|
LogEvent |
LoggerNameLevelRewritePolicy.rewrite(LogEvent event) |
|
LogEvent |
MapRewritePolicy.rewrite(LogEvent source) |
Rewrite the event.
|
LogEvent |
PropertiesRewritePolicy.rewrite(LogEvent source) |
Rewrites the event.
|
LogEvent |
RewritePolicy.rewrite(LogEvent source) |
Rewrite a logging event.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RollingFileManager.checkRollover(LogEvent event) |
Determines if a rollover should occur.
|
boolean |
CompositeTriggeringPolicy.isTriggeringEvent(LogEvent event) |
Determines if a rollover should occur.
|
boolean |
CronTriggeringPolicy.isTriggeringEvent(LogEvent event) |
Determines whether a rollover should occur.
|
boolean |
NoOpTriggeringPolicy.isTriggeringEvent(LogEvent logEvent) |
|
boolean |
OnStartupTriggeringPolicy.isTriggeringEvent(LogEvent event) |
Determine if a rollover should be triggered.
|
boolean |
SizeBasedTriggeringPolicy.isTriggeringEvent(LogEvent event) |
Returns true if a rollover should occur.
|
boolean |
TimeBasedTriggeringPolicy.isTriggeringEvent(LogEvent event) |
Determines whether a rollover should occur.
|
boolean |
TriggeringPolicy.isTriggeringEvent(LogEvent logEvent) |
Determines if a rollover may be appropriate at this time.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RoutingAppender.append(LogEvent event) |
|
String |
Routes.getPattern(LogEvent event,
ConcurrentMap<Object,Object> scriptStaticVariables) |
Returns the pattern.
|
void |
IdlePurgePolicy.update(String key,
LogEvent event) |
|
void |
PurgePolicy.update(String key,
LogEvent event) |
Modifier and Type | Class | Description |
---|---|---|
class |
RingBufferLogEvent |
When the Disruptor is started, the RingBuffer is populated with event objects.
|
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
RingBufferLogEvent.createMemento() |
Creates and returns a new immutable copy of this
RingBufferLogEvent . |
LogEvent |
RingBufferLogEvent.toImmutable() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
AsyncLoggerConfig.callAppenders(LogEvent event) |
|
void |
AsyncLoggerConfigDelegate.enqueueEvent(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
|
void |
AsyncLoggerConfigDisruptor.enqueueEvent(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
|
protected void |
AsyncLoggerConfig.log(LogEvent event,
LoggerConfig.LoggerConfigPredicate predicate) |
|
abstract void |
EventRoute.logMessage(AsyncAppender asyncAppender,
LogEvent coreEvent) |
|
abstract void |
EventRoute.logMessage(AsyncLoggerConfig asyncLoggerConfig,
LogEvent event) |
|
boolean |
AsyncLoggerConfigDelegate.tryEnqueue(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
|
boolean |
AsyncLoggerConfigDisruptor.tryEnqueue(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
Modifier and Type | Method | Description |
---|---|---|
void |
AppenderControl.callAppender(LogEvent event) |
Call the appender.
|
protected void |
LoggerConfig.callAppenders(LogEvent event) |
|
void |
AbstractConfiguration.createConfiguration(Node node,
LogEvent event) |
|
void |
Configuration.createConfiguration(Node node,
LogEvent event) |
|
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
|
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
|
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
|
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
|
void |
LoggerConfig.log(LogEvent event) |
Logs an event.
|
protected void |
LoggerConfig.log(LogEvent event,
LoggerConfig.LoggerConfigPredicate predicate) |
Logs an event.
|
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
Logs an event.
|
Modifier and Type | Method | Description |
---|---|---|
PluginBuilder |
PluginBuilder.forLogEvent(LogEvent event) |
Specifies the LogEvent that may be used to provide extra context for string substitutions.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
PluginAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginBuilderAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginConfigurationVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginElementVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginNodeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginValueVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
|
Object |
PluginVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Visits a Node to obtain a value for constructing a Plugin object.
|
Modifier and Type | Method | Description |
---|---|---|
Filter.Result |
AbstractFilter.filter(LogEvent event) |
Context Filter method.
|
Filter.Result |
BurstFilter.filter(LogEvent event) |
|
Filter.Result |
CompositeFilter.filter(LogEvent event) |
Filter an event.
|
Filter.Result |
DynamicThresholdFilter.filter(LogEvent event) |
|
Filter.Result |
LevelRangeFilter.filter(LogEvent event) |
|
Filter.Result |
MapFilter.filter(LogEvent event) |
|
Filter.Result |
MarkerFilter.filter(LogEvent event) |
|
Filter.Result |
RegexFilter.filter(LogEvent event) |
|
Filter.Result |
ScriptFilter.filter(LogEvent event) |
|
Filter.Result |
StructuredDataFilter.filter(LogEvent event) |
|
Filter.Result |
ThreadContextMapFilter.filter(LogEvent event) |
|
Filter.Result |
ThresholdFilter.filter(LogEvent event) |
|
Filter.Result |
TimeFilter.filter(LogEvent event) |
|
boolean |
AbstractFilterable.isFiltered(LogEvent event) |
Determine if the LogEvent should be processed or ignored.
|
boolean |
Filterable.isFiltered(LogEvent event) |
Determines if the event should be filtered.
|
Modifier and Type | Class | Description |
---|---|---|
class |
Log4jLogEvent |
Implementation of a LogEvent.
|
class |
MutableLogEvent |
Mutable implementation of the
LogEvent interface. |
Modifier and Type | Method | 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) |
|
LogEvent |
ReusableLogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
List<Property> properties,
Throwable t) |
Creates a log event.
|
static LogEvent |
Log4jLogEvent.createMemento(LogEvent logEvent) |
Modifier and Type | Method | Description |
---|---|---|
static LogEvent |
Log4jLogEvent.createMemento(LogEvent logEvent) |
|
static Log4jLogEvent |
Log4jLogEvent.createMemento(LogEvent event,
boolean includeLocation) |
Creates and returns a new immutable copy of this
Log4jLogEvent . |
void |
MutableLogEvent.initFrom(LogEvent event) |
Initialize the fields of this
MutableLogEvent from another event. |
static void |
ReusableLogEventFactory.release(LogEvent logEvent) |
Switches the
reserved flag off if the specified event is a MutableLogEvent, otherwise does nothing. |
static Serializable |
Log4jLogEvent.serialize(LogEvent event,
boolean includeLocation) |
Take a snapshot of the specified
LogEvent . |
Constructor | Description |
---|---|
Builder(LogEvent other) |
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
SerializedLayout.toSerializable(LogEvent event) |
Deprecated.
Returns the LogEvent.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractLayout.encode(LogEvent event,
ByteBufferDestination destination) |
Encodes the specified source LogEvent to some binary representation and writes the result to the specified
destination.
|
void |
GelfLayout.encode(LogEvent event,
ByteBufferDestination destination) |
|
void |
PatternLayout.encode(LogEvent event,
ByteBufferDestination destination) |
|
PatternFormatter[] |
MarkerPatternSelector.getFormatters(LogEvent event) |
|
PatternFormatter[] |
PatternSelector.getFormatters(LogEvent event) |
|
PatternFormatter[] |
ScriptPatternSelector.getFormatters(LogEvent event) |
|
byte[] |
AbstractStringLayout.toByteArray(LogEvent event) |
Formats the Log Event as a byte array.
|
byte[] |
GelfLayout.toByteArray(LogEvent event) |
|
byte[] |
MessageLayout.toByteArray(LogEvent event) |
|
byte[] |
SerializedLayout.toByteArray(LogEvent event) |
Deprecated.
Formats a
LogEvent as a serialized byte array of the LogEvent object. |
String |
AbstractStringLayout.Serializer.toSerializable(LogEvent event) |
|
StringBuilder |
AbstractStringLayout.Serializer2.toSerializable(LogEvent event,
StringBuilder builder) |
|
String |
CsvLogEventLayout.toSerializable(LogEvent event) |
|
String |
CsvParameterLayout.toSerializable(LogEvent event) |
|
String |
GelfLayout.toSerializable(LogEvent event) |
|
String |
HtmlLayout.toSerializable(LogEvent event) |
Formats as a String.
|
void |
JsonLayout.toSerializable(LogEvent event,
Writer writer) |
|
Message |
MessageLayout.toSerializable(LogEvent event) |
|
String |
PatternLayout.toSerializable(LogEvent event) |
Formats a logging event to a writer.
|
String |
Rfc5424Layout.toSerializable(LogEvent event) |
Formats a
LogEvent in conformance with the RFC 5424 Syslog specification. |
LogEvent |
SerializedLayout.toSerializable(LogEvent event) |
Deprecated.
Returns the LogEvent.
|
String |
SyslogLayout.toSerializable(LogEvent event) |
Formats a
LogEvent in conformance with the BSD Log record format. |
Modifier and Type | Method | Description |
---|---|---|
String |
ContextMapLookup.lookup(LogEvent event,
String key) |
Looks up the value from the ThreadContext Map.
|
String |
DateLookup.lookup(LogEvent event,
String key) |
Looks up the value of the environment variable.
|
String |
EnvironmentLookup.lookup(LogEvent event,
String key) |
Looks up the value of the environment variable.
|
String |
Interpolator.lookup(LogEvent event,
String var) |
Resolves the specified variable.
|
String |
JavaLookup.lookup(LogEvent event,
String key) |
Looks up the value of the environment variable.
|
String |
JndiLookup.lookup(LogEvent event,
String key) |
Looks up the value of the JNDI resource.
|
String |
Log4jLookup.lookup(LogEvent event,
String key) |
|
String |
MainMapLookup.lookup(LogEvent event,
String key) |
|
String |
MapLookup.lookup(LogEvent event,
String key) |
|
String |
MarkerLookup.lookup(LogEvent event,
String key) |
|
String |
ResourceBundleLookup.lookup(LogEvent event,
String key) |
Looks up the value for the key in the format "BundleName:BundleKey".
|
String |
StrLookup.lookup(LogEvent event,
String key) |
Looks up a String key to a String value possibly using the current LogEvent.
|
String |
StructuredDataLookup.lookup(LogEvent event,
String key) |
Looks up the value for the key using the data in the LogEvent.
|
String |
SystemPropertiesLookup.lookup(LogEvent event,
String key) |
Looks up the value for the key using the data in the LogEvent.
|
String |
StrSubstitutor.replace(LogEvent event,
char[] source) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source array as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
char[] source,
int offset,
int length) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source array as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
Object source) |
Replaces all the occurrences of variables in the given source object with
their matching values from the resolver.
|
String |
StrSubstitutor.replace(LogEvent event,
String source) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source string as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
StringBuffer source) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source buffer as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
StringBuffer source,
int offset,
int length) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source buffer as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
StringBuilder source) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source builder as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
StringBuilder source,
int offset,
int length) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source builder as a template.
|
String |
StrSubstitutor.replace(LogEvent event,
String source,
int offset,
int length) |
Replaces all the occurrences of variables with their matching values
from the resolver using the given source string as a template.
|
boolean |
StrSubstitutor.replaceIn(LogEvent event,
StringBuffer source,
int offset,
int length) |
Replaces all the occurrences of variables within the given source buffer
with their matching values from the resolver.
|
boolean |
StrSubstitutor.replaceIn(LogEvent event,
StringBuilder source) |
Replaces all the occurrences of variables within the given source
builder with their matching values from the resolver.
|
boolean |
StrSubstitutor.replaceIn(LogEvent event,
StringBuilder source,
int offset,
int length) |
Replaces all the occurrences of variables within the given source
builder with their matching values from the resolver.
|
protected String |
StrSubstitutor.resolveVariable(LogEvent event,
String variableName,
StringBuilder buf,
int startPos,
int endPos) |
Internal method that resolves the value of a variable.
|
protected boolean |
StrSubstitutor.substitute(LogEvent event,
StringBuilder buf,
int offset,
int length) |
Internal method that substitutes the variables.
|
Modifier and Type | Method | Description |
---|---|---|
void |
SmtpManager.add(LogEvent event) |
|
protected byte[] |
SmtpManager.formatContentToBytes(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout) |
|
void |
SmtpManager.sendEvents(Layout<?> layout,
LogEvent appendEvent) |
Send the contents of the cyclic buffer as an e-mail message.
|
protected void |
SmtpManager.writeBuffer(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout,
OutputStream out) |
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
LogEventParser.parseFrom(byte[] input) |
Parses a byte array, which is expected to contain exactly one log event.
|
LogEvent |
LogEventParser.parseFrom(byte[] input,
int offset,
int length) |
Parses a specified range in a byte array.
|
LogEvent |
TextLogEventParser.parseFrom(String input) |
Parses a String, which is expected to contain exactly one log event.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractStyleNameConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ClassNamePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Format a logging event.
|
void |
DatePatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
EncodingPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
EndOfBatchPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
EqualsBaseReplacementConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ExtendedThrowablePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
FileLocationPatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
FullLocationPatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
HighlightConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
LevelPatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
LineLocationPatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
LineSeparatorPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
LiteralPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
abstract void |
LogEventPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
LoggerFqcnPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
LoggerPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MapPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MarkerPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MarkerSimpleNamePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MaxLengthConverter.format(LogEvent event,
StringBuilder toAppendTo) |
|
void |
MdcPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MessagePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
MethodLocationPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
NanoTimePatternConverter.format(LogEvent event,
StringBuilder output) |
Formats an event into a string buffer.
|
void |
NdcPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
|
void |
PatternFormatter.format(LogEvent event,
StringBuilder buf) |
|
void |
ProcessIdPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
RegexReplacementConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
RelativeTimePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
RootThrowablePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
SequenceNumberPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
StyleConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ThreadIdPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ThreadNamePatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ThreadPriorityPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
ThrowablePatternConverter.format(LogEvent event,
StringBuilder buffer) |
Formats an event into a string buffer.
|
void |
UuidPatternConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
void |
VariablesNotEmptyReplacementConverter.format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
protected String |
ThrowablePatternConverter.getSuffix(LogEvent event) |
Modifier and Type | Method | Description |
---|---|---|
String |
WebLookup.lookup(LogEvent event,
String key) |
Modifier and Type | Method | Description |
---|---|---|
void |
ServletAppender.append(LogEvent event) |
Copyright © 1999-2018. 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.