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.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.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
Modifier and Type | Method and Description |
---|---|
void |
Log4j1XmlLayout.encode(LogEvent event,
ByteBufferDestination destination) |
private void |
Log4j1XmlLayout.formatTo(LogEvent event,
java.lang.StringBuilder buf) |
java.lang.String |
Log4j1XmlLayout.toSerializable(LogEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
Log4j1NdcPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo) |
void |
Log4j1MdcPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLogEvent
An abstract log event implementation with default values for all methods.
|
Modifier and Type | Method and Description |
---|---|
LogEvent |
LogEvent.toImmutable()
Returns an immutable version of this log event, which MAY BE a copy of this event.
|
LogEvent |
AbstractLogEvent.toImmutable()
Subclasses should implement this method to provide an immutable version.
|
Modifier and Type | Method and Description |
---|---|
void |
Appender.append(LogEvent event)
Logs a LogEvent using whatever logic this Appender wishes to use.
|
void |
ErrorHandler.error(java.lang.String msg,
LogEvent event,
java.lang.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 | Field and Description |
---|---|
private static LogEvent |
AsyncAppender.SHUTDOWN_LOG_EVENT |
Modifier and Type | Field and Description |
---|---|
private BlockingQueueFactory<LogEvent> |
AsyncAppender.Builder.blockingQueueFactory |
private java.util.concurrent.BlockingQueue<LogEvent> |
AsyncAppender.queue |
private java.util.concurrent.BlockingQueue<LogEvent> |
AsyncAppender.AsyncThread.queue |
Modifier and Type | Method and Description |
---|---|
void |
AsyncAppender.append(LogEvent logEvent)
Actual writing occurs here.
|
void |
RollingFileAppender.append(LogEvent event)
Writes the log entry rolling over the file when required.
|
void |
FailoverAppender.append(LogEvent event)
Handle the Log 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.
|
void |
CountingNoOpAppender.append(LogEvent event) |
void |
AbstractWriterAppender.append(LogEvent event)
Actual writing occurs here.
|
void |
AbstractOutputStreamAppender.append(LogEvent event)
Actual writing occurs here.
|
void |
NullAppender.append(LogEvent event) |
void |
ScriptAppenderSelector.append(LogEvent event) |
void |
RollingRandomAccessFileAppender.append(LogEvent event)
Write the log entry rolling over the file when required.
|
void |
RandomAccessFileAppender.append(LogEvent event)
Write the log entry rolling over the file when required.
|
void |
MemoryMappedFileAppender.append(LogEvent event)
Write the log entry rolling over the file when required.
|
private void |
FailoverAppender.callAppender(LogEvent event) |
(package private) boolean |
AsyncAppender.AsyncThread.callAppenders(LogEvent event)
Calls
callAppender on all registered AppenderControl
objects, and returns true if at least one appender call was successful, false otherwise. |
protected void |
AbstractOutputStreamAppender.directEncodeEvent(LogEvent event) |
protected void |
SocketAppender.directEncodeEvent(LogEvent event) |
void |
DefaultErrorHandler.error(java.lang.String msg,
LogEvent event,
java.lang.Throwable t)
Handle an error with a message, and exception and a logging event.
|
void |
AbstractAppender.error(java.lang.String msg,
LogEvent event,
java.lang.Throwable t)
Handle an error with a message, exception, and a logging event, using the
ErrorHandler configured for
this Appender. |
private void |
FailoverAppender.failover(LogEvent event,
java.lang.Exception ex) |
private boolean |
AsyncAppender.handleInterruptedException(LogEvent memento) |
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.
|
private void |
AsyncAppender.logToErrorAppenderIfNecessary(boolean appendSuccessful,
LogEvent logEvent) |
private boolean |
AsyncAppender.transfer(LogEvent memento) |
private void |
AbstractOutputStreamAppender.tryAppend(LogEvent event) |
protected void |
AbstractOutputStreamAppender.writeByteArrayToManager(LogEvent event) |
Modifier and Type | Method and Description |
---|---|
AsyncAppender.Builder |
AsyncAppender.Builder.setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory) |
Constructor and Description |
---|
AsyncAppender(java.lang.String name,
Filter filter,
AppenderRef[] appenderRefs,
java.lang.String errorRef,
int queueSize,
boolean blocking,
boolean ignoreExceptions,
long shutdownTimeout,
Configuration config,
boolean includeLocation,
BlockingQueueFactory<LogEvent> blockingQueueFactory) |
AsyncThread(java.util.List<AppenderControl> appenders,
java.util.concurrent.BlockingQueue<LogEvent> queue) |
Modifier and Type | Method and Description |
---|---|
LogEvent |
MapRewritePolicy.rewrite(LogEvent source)
Rewrite the event.
|
LogEvent |
PropertiesRewritePolicy.rewrite(LogEvent source)
Rewrite the event.
|
LogEvent |
RewritePolicy.rewrite(LogEvent source)
Rewrite a logging event.
|
LogEvent |
LoggerNameLevelRewritePolicy.rewrite(LogEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
RewriteAppender.append(LogEvent event)
Modifies the event and pass to the subordinate Appenders.
|
LogEvent |
MapRewritePolicy.rewrite(LogEvent source)
Rewrite the event.
|
LogEvent |
PropertiesRewritePolicy.rewrite(LogEvent source)
Rewrite the event.
|
LogEvent |
RewritePolicy.rewrite(LogEvent source)
Rewrite a logging event.
|
LogEvent |
LoggerNameLevelRewritePolicy.rewrite(LogEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
RollingFileManager.checkRollover(LogEvent event)
Determines if a rollover should occur.
|
boolean |
TriggeringPolicy.isTriggeringEvent(LogEvent logEvent)
Determines if a rollover may be appropriate at this time.
|
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 |
CronTriggeringPolicy.isTriggeringEvent(LogEvent event)
Determines whether a rollover should occur.
|
boolean |
CompositeTriggeringPolicy.isTriggeringEvent(LogEvent event)
Determines if a rollover should occur.
|
boolean |
TimeBasedTriggeringPolicy.isTriggeringEvent(LogEvent event)
Determines whether a rollover should occur.
|
Modifier and Type | Method and Description |
---|---|
void |
RoutingAppender.append(LogEvent event) |
private Appender |
RoutingAppender.createAppender(Route route,
LogEvent event) |
private AppenderControl |
RoutingAppender.getControl(java.lang.String key,
LogEvent event) |
java.lang.String |
Routes.getPattern(LogEvent event,
java.util.concurrent.ConcurrentMap<java.lang.Object,java.lang.Object> scriptStaticVariables)
Returns the pattern.
|
void |
IdlePurgePolicy.update(java.lang.String key,
LogEvent event) |
void |
PurgePolicy.update(java.lang.String key,
LogEvent event) |
Modifier and Type | Class and Description |
---|---|
class |
RingBufferLogEvent
When the Disruptor is started, the RingBuffer is populated with event objects.
|
Modifier and Type | Field and Description |
---|---|
private LogEvent |
AsyncLoggerConfigDisruptor.Log4jEventWrapper.event |
Modifier and Type | Field and Description |
---|---|
private static com.lmax.disruptor.EventTranslatorTwoArg<AsyncLoggerConfigDisruptor.Log4jEventWrapper,LogEvent,AsyncLoggerConfig> |
AsyncLoggerConfigDisruptor.MUTABLE_TRANSLATOR
Object responsible for passing on data to a RingBuffer event with a MutableLogEvent.
|
private com.lmax.disruptor.EventTranslatorTwoArg<AsyncLoggerConfigDisruptor.Log4jEventWrapper,LogEvent,AsyncLoggerConfig> |
AsyncLoggerConfigDisruptor.translator |
private static com.lmax.disruptor.EventTranslatorTwoArg<AsyncLoggerConfigDisruptor.Log4jEventWrapper,LogEvent,AsyncLoggerConfig> |
AsyncLoggerConfigDisruptor.TRANSLATOR
Object responsible for passing on data to a specific RingBuffer event.
|
Modifier and Type | Method and Description |
---|---|
LogEvent |
RingBufferLogEvent.createMemento()
Creates and returns a new immutable copy of this
RingBufferLogEvent . |
private LogEvent |
AsyncLoggerConfigDisruptor.ensureImmutable(LogEvent event) |
private LogEvent |
AsyncLoggerConfigDisruptor.prepareEvent(LogEvent event) |
LogEvent |
RingBufferLogEvent.toImmutable() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
AsyncLoggerConfig.asyncCallAppenders(LogEvent event)
Called by AsyncLoggerConfigHelper.RingBufferLog4jEventHandler.
|
protected void |
AsyncLoggerConfig.callAppenders(LogEvent event)
Passes on the event to a separate thread that will call
AsyncLoggerConfig.asyncCallAppenders(LogEvent) . |
(package private) void |
AsyncLoggerConfig.callAppendersInBackgroundThread(LogEvent event) |
(package private) void |
AsyncLoggerConfig.callAppendersInCurrentThread(LogEvent event) |
private void |
AsyncLoggerConfigDisruptor.enqueue(LogEvent logEvent,
AsyncLoggerConfig asyncLoggerConfig) |
void |
AsyncLoggerConfigDisruptor.enqueueEvent(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
void |
AsyncLoggerConfigDelegate.enqueueEvent(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
private LogEvent |
AsyncLoggerConfigDisruptor.ensureImmutable(LogEvent event) |
abstract void |
EventRoute.logMessage(AsyncAppender asyncAppender,
LogEvent coreEvent) |
abstract void |
EventRoute.logMessage(AsyncLoggerConfig asyncLoggerConfig,
LogEvent event) |
private void |
AsyncLoggerConfig.populateLazilyInitializedFields(LogEvent event) |
private LogEvent |
AsyncLoggerConfigDisruptor.prepareEvent(LogEvent event) |
boolean |
AsyncLoggerConfigDisruptor.tryEnqueue(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
boolean |
AsyncLoggerConfigDelegate.tryEnqueue(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
Modifier and Type | Method and Description |
---|---|
void |
AppenderControl.callAppender(LogEvent event)
Call the appender.
|
private void |
AppenderControl.callAppender0(LogEvent event) |
private void |
AppenderControl.callAppenderPreventRecursion(LogEvent event) |
protected void |
LoggerConfig.callAppenders(LogEvent event) |
void |
AbstractConfiguration.createConfiguration(Node node,
LogEvent event) |
void |
Configuration.createConfiguration(Node node,
LogEvent event) |
private java.lang.Object |
AbstractConfiguration.createPluginObject(PluginType<?> type,
Node node,
LogEvent event)
Invokes a static factory method to either create the desired object or to create a builder object that creates
the desired object.
|
private boolean |
AppenderControl.isFilteredByAppender(LogEvent event) |
private boolean |
AppenderControl.isFilteredByAppenderControl(LogEvent event) |
private boolean |
AppenderControl.isFilteredByLevel(LogEvent event) |
void |
LoggerConfig.log(LogEvent event)
Logs an event.
|
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event)
Logs an event.
|
private void |
LoggerConfig.logParent(LogEvent event) |
private void |
LoggerConfig.processLogEvent(LogEvent event) |
private boolean |
AppenderControl.shouldSkip(LogEvent event) |
private void |
AppenderControl.tryCallAppender(LogEvent event) |
Modifier and Type | Field and Description |
---|---|
private LogEvent |
PluginBuilder.event |
Modifier and Type | Method and Description |
---|---|
PluginBuilder |
PluginBuilder.forLogEvent(LogEvent event)
Specifies the LogEvent that may be used to provide extra context for string substitutions.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
PluginAttributeVisitor.findDefaultValue(LogEvent event) |
java.lang.Object |
PluginVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log)
Visits a Node to obtain a value for constructing a Plugin object.
|
java.lang.Object |
PluginConfigurationVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
java.lang.Object |
PluginElementVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
java.lang.Object |
PluginAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
java.lang.Object |
PluginBuilderAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
java.lang.Object |
PluginNodeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
java.lang.Object |
PluginValueVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log) |
Modifier and Type | Method and Description |
---|---|
Filter.Result |
DynamicThresholdFilter.filter(LogEvent event) |
Filter.Result |
MarkerFilter.filter(LogEvent event) |
Filter.Result |
StructuredDataFilter.filter(LogEvent event) |
Filter.Result |
ScriptFilter.filter(LogEvent event) |
Filter.Result |
BurstFilter.filter(LogEvent event) |
Filter.Result |
ThresholdFilter.filter(LogEvent event) |
Filter.Result |
LevelRangeFilter.filter(LogEvent event) |
Filter.Result |
CompositeFilter.filter(LogEvent event)
Filter an event.
|
Filter.Result |
RegexFilter.filter(LogEvent event) |
Filter.Result |
TimeFilter.filter(LogEvent event) |
Filter.Result |
ThreadContextMapFilter.filter(LogEvent event) |
Filter.Result |
AbstractFilter.filter(LogEvent event)
Context Filter method.
|
Filter.Result |
MapFilter.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 and Description |
---|---|
class |
Log4jLogEvent
Implementation of a LogEvent.
|
class |
MutableLogEvent
Mutable implementation of the
LogEvent interface. |
Modifier and Type | Method and Description |
---|---|
LogEvent |
ReusableLogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message message,
java.util.List<Property> properties,
java.lang.Throwable t)
Creates a log event.
|
LogEvent |
LogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message data,
java.util.List<Property> properties,
java.lang.Throwable t) |
LogEvent |
DefaultLogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message data,
java.util.List<Property> properties,
java.lang.Throwable t)
Creates a log event.
|
LogEvent |
Log4jLogEvent.createMemento() |
static LogEvent |
Log4jLogEvent.createMemento(LogEvent logEvent) |
Modifier and Type | Method and 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 java.io.Serializable |
Log4jLogEvent.serialize(LogEvent event,
boolean includeLocation)
Take a snapshot of the specified
LogEvent . |
Constructor and Description |
---|
Builder(LogEvent other) |
LogEventProxy(LogEvent event,
boolean includeLocation) |
Modifier and Type | Method and Description |
---|---|
LogEvent |
SerializedLayout.toSerializable(LogEvent event)
Returns the LogEvent.
|
Modifier and Type | Method and Description |
---|---|
private void |
Rfc5424Layout.appendMessage(java.lang.StringBuilder buffer,
LogEvent event) |
private void |
Rfc5424Layout.appendStructuredElements(java.lang.StringBuilder buffer,
LogEvent event) |
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 |
PatternLayout.encode(LogEvent event,
ByteBufferDestination destination) |
Rfc5424Layout.StructuredDataElement |
Rfc5424Layout.FieldFormatter.format(LogEvent event) |
PatternFormatter[] |
PatternSelector.getFormatters(LogEvent event) |
PatternFormatter[] |
MarkerPatternSelector.getFormatters(LogEvent event) |
PatternFormatter[] |
ScriptPatternSelector.getFormatters(LogEvent event) |
byte[] |
AbstractStringLayout.toByteArray(LogEvent event)
Formats the Log Event as a byte array.
|
byte[] |
SerializedLayout.toByteArray(LogEvent event)
Formats a
LogEvent as a serialized byte array of the LogEvent object. |
java.lang.String |
AbstractStringLayout.Serializer.toSerializable(LogEvent event) |
LogEvent |
SerializedLayout.toSerializable(LogEvent event)
Returns the LogEvent.
|
java.lang.String |
HtmlLayout.toSerializable(LogEvent event)
Formats as a String.
|
java.lang.String |
SyslogLayout.toSerializable(LogEvent event)
Formats a
LogEvent in conformance with the BSD Log record format. |
java.lang.String |
PatternLayout.toSerializable(LogEvent event)
Formats a logging event to a writer.
|
java.lang.String |
PatternLayout.PatternSerializer.toSerializable(LogEvent event) |
java.lang.String |
PatternLayout.PatternSelectorSerializer.toSerializable(LogEvent event) |
java.lang.String |
Rfc5424Layout.toSerializable(LogEvent event)
Formats a
LogEvent in conformance with the RFC 5424 Syslog specification. |
java.lang.StringBuilder |
AbstractStringLayout.Serializer2.toSerializable(LogEvent event,
java.lang.StringBuilder builder) |
java.lang.StringBuilder |
PatternLayout.PatternSerializer.toSerializable(LogEvent event,
java.lang.StringBuilder buffer) |
java.lang.StringBuilder |
PatternLayout.PatternSelectorSerializer.toSerializable(LogEvent event,
java.lang.StringBuilder buffer) |
private java.lang.StringBuilder |
PatternLayout.toText(AbstractStringLayout.Serializer2 serializer,
LogEvent event,
java.lang.StringBuilder destination)
Creates a text representation of the specified log event
and writes it into the specified StringBuilder.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
JavaLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value of the environment variable.
|
java.lang.String |
DateLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value of the environment variable.
|
java.lang.String |
Interpolator.lookup(LogEvent event,
java.lang.String var)
Resolves the specified variable.
|
java.lang.String |
MapLookup.lookup(LogEvent event,
java.lang.String key) |
java.lang.String |
StrLookup.lookup(LogEvent event,
java.lang.String key)
Looks up a String key to a String value possibly using the current LogEvent.
|
java.lang.String |
MarkerLookup.lookup(LogEvent event,
java.lang.String key) |
java.lang.String |
Log4jLookup.lookup(LogEvent event,
java.lang.String key) |
java.lang.String |
ResourceBundleLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value for the key in the format "BundleName:BundleKey".
|
java.lang.String |
ContextMapLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value from the ThreadContext Map.
|
java.lang.String |
StructuredDataLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value for the key using the data in the LogEvent.
|
java.lang.String |
SystemPropertiesLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value for the key using the data in the LogEvent.
|
java.lang.String |
MainMapLookup.lookup(LogEvent event,
java.lang.String key) |
java.lang.String |
JndiLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value of the JNDI resource.
|
java.lang.String |
EnvironmentLookup.lookup(LogEvent event,
java.lang.String key)
Looks up the value of the environment variable.
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.Object source)
Replaces all the occurrences of variables in the given source object with
their matching values from the resolver.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.String source)
Replaces all the occurrences of variables with their matching values
from the resolver using the given source string as a template.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.StringBuffer source)
Replaces all the occurrences of variables with their matching values
from the resolver using the given source buffer as a template.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.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.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.StringBuilder source)
Replaces all the occurrences of variables with their matching values
from the resolver using the given source builder as a template.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.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.
|
java.lang.String |
StrSubstitutor.replace(LogEvent event,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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 java.lang.String |
StrSubstitutor.resolveVariable(LogEvent event,
java.lang.String variableName,
java.lang.StringBuilder buf,
int startPos,
int endPos)
Internal method that resolves the value of a variable.
|
protected boolean |
StrSubstitutor.substitute(LogEvent event,
java.lang.StringBuilder buf,
int offset,
int length)
Internal method that substitutes the variables.
|
private int |
StrSubstitutor.substitute(LogEvent event,
java.lang.StringBuilder buf,
int offset,
int length,
java.util.List<java.lang.String> priorVariables)
Recursive handler for multiple levels of interpolation.
|
Modifier and Type | Field and Description |
---|---|
private CyclicBuffer<LogEvent> |
SmtpManager.buffer |
Modifier and Type | Method and Description |
---|---|
void |
SmtpManager.add(LogEvent event) |
private void |
SmtpManager.connect(LogEvent appendEvent) |
private static javax.mail.internet.MimeMessage |
SmtpManager.createMimeMessage(SmtpManager.FactoryData data,
javax.mail.Session session,
LogEvent appendEvent) |
protected byte[] |
SmtpManager.formatContentToBytes(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout) |
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,
java.io.OutputStream out) |
protected void |
SmtpManager.writeBuffer(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout,
java.io.OutputStream out) |
private void |
SmtpManager.writeContent(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout,
java.io.ByteArrayOutputStream out) |
private void |
SmtpManager.writeContent(LogEvent[] priorEvents,
LogEvent appendEvent,
Layout<?> layout,
java.io.ByteArrayOutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
MarkerSimpleNamePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
ClassNamePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Format a logging event.
|
void |
ThreadPriorityPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
MdcPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
EqualsBaseReplacementConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
RegexReplacementConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
ExtendedThrowablePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
NdcPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo) |
void |
EncodingPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
LoggerPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
FileLocationPatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
void |
MarkerPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
ThreadNamePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
MethodLocationPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
LiteralPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
MessagePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
ThrowablePatternConverter.format(LogEvent event,
java.lang.StringBuilder buffer)
Formats an event into a string buffer.
|
void |
UuidPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
RelativeTimePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
DatePatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
void |
AbstractStyleNameConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
abstract void |
LogEventPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
ThreadIdPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
PatternFormatter.format(LogEvent event,
java.lang.StringBuilder buf) |
void |
SequenceNumberPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
LineSeparatorPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
FullLocationPatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
void |
MapPatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
LevelPatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
void |
MaxLengthConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo) |
void |
HighlightConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
StyleConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
VariablesNotEmptyReplacementConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
NanoTimePatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
void |
RootThrowablePatternConverter.format(LogEvent event,
java.lang.StringBuilder toAppendTo)
Formats an event into a string buffer.
|
void |
LineLocationPatternConverter.format(LogEvent event,
java.lang.StringBuilder output)
Formats an event into a string buffer.
|
private void |
PatternFormatter.formatWithInfo(LogEvent event,
java.lang.StringBuilder buf) |
protected java.lang.String |
ThrowablePatternConverter.getSuffix(LogEvent event) |
(package private) void |
EqualsBaseReplacementConverter.parseSubstitution(LogEvent event,
java.lang.StringBuilder substitutionBuffer)
Adds the parsed substitution text to the specified buffer.
|