Uses of Interface
org.apache.logging.log4j.core.LogEvent
Packages that use LogEvent
Package
Description
Implementation of Log4j 2.
Log4j 2 Appenders.
Apache Flume Appender.
Rolling File Appender and support classes.
Apache Flume Appender.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Configuration of Log4j 2.
Utility and manager classes for Log4j 2 plugins.
Visitor classes for extracting values from a Configuration or Node corresponding to a plugin annotation.
Log4j 2 Filter support.
Log4j 2 private implementation classes.
Log4j 2 Layout support.
Log4j 2 Lookups.
Log4j 2 network support.
Provides classes implementing format specifiers in conversion patterns.
The classes in this package are responsible for properly initializing and deinitializing Log4j in a Java EE web
application.
-
Uses of LogEvent in org.apache.log4j.bridge
Classes in org.apache.log4j.bridge that implement LogEventModifier and TypeClassDescriptionclass
Exposes a Log4j 1 logging event as a Log4j 2 LogEvent.Fields in org.apache.log4j.bridge declared as LogEventMethods in org.apache.log4j.bridge that return LogEventMethods in org.apache.log4j.bridge with parameters of type LogEventModifier and TypeMethodDescriptionvoid
void
LayoutAdapter.encode
(LogEvent event, ByteBufferDestination destination) void
byte[]
LayoutAdapter.toByteArray
(LogEvent event) LayoutAdapter.toSerializable
(LogEvent event) Constructors in org.apache.log4j.bridge with parameters of type LogEvent -
Uses of LogEvent in org.apache.log4j.layout
Methods in org.apache.log4j.layout with parameters of type LogEventModifier and TypeMethodDescriptionvoid
Log4j1XmlLayout.encode
(LogEvent event, ByteBufferDestination destination) private void
Log4j1XmlLayout.formatTo
(LogEvent event, StringBuilder buf) Log4j1SyslogLayout.toSerializable
(LogEvent event) Formats aLogEvent
in conformance with the BSD Log record format.Log4j1XmlLayout.toSerializable
(LogEvent event) -
Uses of LogEvent in org.apache.log4j.legacy.core
Methods in org.apache.log4j.legacy.core with parameters of type LogEvent -
Uses of LogEvent in org.apache.log4j.pattern
Methods in org.apache.log4j.pattern with parameters of type LogEventModifier and TypeMethodDescriptionvoid
Log4j1LevelPatternConverter.format
(LogEvent event, StringBuilder toAppendTo) void
Log4j1MdcPatternConverter.format
(LogEvent event, StringBuilder toAppendTo) Formats an event into a string buffer.void
Log4j1NdcPatternConverter.format
(LogEvent event, StringBuilder toAppendTo) -
Uses of LogEvent in org.apache.logging.log4j.core
Classes in org.apache.logging.log4j.core that implement LogEventModifier and TypeClassDescriptionclass
An abstract log event implementation with default values for all methods.Methods in org.apache.logging.log4j.core that return LogEventModifier and TypeMethodDescriptionAbstractLogEvent.toImmutable()
Subclasses should implement this method to provide an immutable version.LogEvent.toImmutable()
Returns an immutable version of this log event, which MAY BE a copy of this event.Methods in org.apache.logging.log4j.core with parameters of type LogEventModifier and TypeMethodDescriptionvoid
Logs a LogEvent using whatever logic this Appender wishes to use.void
Handle an error with a message, and exception and a logging event.Filter an event.void
void
byte[]
Layout.toByteArray
(LogEvent event) Formats the event suitable for display.Layout.toSerializable
(LogEvent event) Formats the event as an Object that can be serialized. -
Uses of LogEvent in org.apache.logging.log4j.core.appender
Fields in org.apache.logging.log4j.core.appender declared as LogEventModifier and TypeFieldDescriptionprivate static final LogEvent
AsyncAppenderEventDispatcher.STOP_EVENT
Fields in org.apache.logging.log4j.core.appender with type parameters of type LogEventModifier and TypeFieldDescriptionprivate BlockingQueueFactory
<LogEvent> AsyncAppender.Builder.blockingQueueFactory
private final BlockingQueue
<LogEvent> AsyncAppender.queue
private final BlockingQueue
<LogEvent> AsyncAppenderEventDispatcher.queue
Methods in org.apache.logging.log4j.core.appender with parameters of type LogEventModifier and TypeMethodDescriptionvoid
Actual writing occurs here.void
Actual writing occurs here.void
Actual writing occurs here.void
void
Handle the Log event.void
void
void
Writes the log entry rolling over the file when required.void
Write the log entry rolling over the file when required.void
private void
FailoverAppender.callAppender
(LogEvent event) protected void
AbstractOutputStreamAppender.directEncodeEvent
(LogEvent event) protected void
SocketAppender.directEncodeEvent
(LogEvent event) (package private) void
Dispatches the givenevent
to the registered appenders in the current thread.void
Handle an error with a message, exception, and a logging event, using theErrorHandler
configured for this Appender.void
Handle an error with a message, an exception, and a logging event.private void
private boolean
AsyncAppender.handleInterruptedException
(LogEvent memento) 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) abstract void
void
protected Serializable
AbstractAppender.toSerializable
(LogEvent event) Serializes the given event using the appender's layout if present.private boolean
private void
protected void
AbstractOutputStreamAppender.writeByteArrayToManager
(LogEvent event) Method parameters in org.apache.logging.log4j.core.appender with type arguments of type LogEventModifier and TypeMethodDescriptionAsyncAppender.Builder.setBlockingQueueFactory
(BlockingQueueFactory<LogEvent> blockingQueueFactory) Constructor parameters in org.apache.logging.log4j.core.appender with type arguments of type LogEventModifierConstructorDescriptionprivate
AsyncAppender
(String name, Filter filter, AppenderRef[] appenderRefs, String errorRef, int queueSize, boolean blocking, boolean ignoreExceptions, long shutdownTimeout, Configuration config, boolean includeLocation, BlockingQueueFactory<LogEvent> blockingQueueFactory, Property[] properties) (package private)
AsyncAppenderEventDispatcher
(String name, AppenderControl errorAppender, List<AppenderControl> appenders, BlockingQueue<LogEvent> queue) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.rewrite
Methods in org.apache.logging.log4j.core.appender.rewrite that return LogEventModifier and TypeMethodDescriptionRewrite the event.Rewrites the event.Rewrite a logging event.Methods in org.apache.logging.log4j.core.appender.rewrite with parameters of type LogEventModifier and TypeMethodDescriptionvoid
Modifies the event and pass to the subordinate Appenders.Rewrite the event.Rewrites the event.Rewrite a logging event. -
Uses of LogEvent in org.apache.logging.log4j.core.appender.rolling
Methods in org.apache.logging.log4j.core.appender.rolling with parameters of type LogEventModifier and TypeMethodDescriptionvoid
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. -
Uses of LogEvent in org.apache.logging.log4j.core.appender.routing
Methods in org.apache.logging.log4j.core.appender.routing with parameters of type LogEventModifier and TypeMethodDescriptionvoid
private Appender
RoutingAppender.createAppender
(Route route, LogEvent event) RoutingAppender.getControl
(String key, LogEvent event) Routes.getPattern
(LogEvent event, ConcurrentMap<Object, Object> scriptStaticVariables) Returns the pattern.void
void
private void
RoutingAppender.updatePurgePolicy
(String key, LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.core.async
Classes in org.apache.logging.log4j.core.async that implement LogEventModifier and TypeClassDescriptionclass
When the Disruptor is started, the RingBuffer is populated with event objects.Fields in org.apache.logging.log4j.core.async declared as LogEventModifier and TypeFieldDescriptionprivate LogEvent
AsyncLoggerConfigDisruptor.Log4jEventWrapper.event
Fields in org.apache.logging.log4j.core.async with type parameters of type LogEventModifier and TypeFieldDescriptionprivate static final 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 final com.lmax.disruptor.EventTranslatorTwoArg
<AsyncLoggerConfigDisruptor.Log4jEventWrapper, LogEvent, AsyncLoggerConfig> AsyncLoggerConfigDisruptor.TRANSLATOR
Object responsible for passing on data to a specific RingBuffer event.Methods in org.apache.logging.log4j.core.async that return LogEventModifier and TypeMethodDescriptionRingBufferLogEvent.createMemento()
Creates and returns a new immutable copy of thisRingBufferLogEvent
.private LogEvent
AsyncLoggerConfigDisruptor.ensureImmutable
(LogEvent event) private LogEvent
AsyncLoggerConfigDisruptor.prepareEvent
(LogEvent event) RingBufferLogEvent.toImmutable()
Methods in org.apache.logging.log4j.core.async with parameters of type LogEventModifier and TypeMethodDescriptionprotected void
AsyncLoggerConfig.callAppenders
(LogEvent event) private void
AsyncLoggerConfigDisruptor.enqueue
(LogEvent logEvent, AsyncLoggerConfig asyncLoggerConfig) void
AsyncLoggerConfigDelegate.enqueueEvent
(LogEvent event, AsyncLoggerConfig asyncLoggerConfig) Enqueues theLogEvent
on the mixed configuration ringbuffer.void
AsyncLoggerConfigDisruptor.enqueueEvent
(LogEvent event, AsyncLoggerConfig asyncLoggerConfig) private LogEvent
AsyncLoggerConfigDisruptor.ensureImmutable
(LogEvent event) private void
AsyncLoggerConfig.handleQueueFull
(LogEvent event) protected void
AsyncLoggerConfig.log
(LogEvent event, LoggerConfig.LoggerConfigPredicate predicate) (package private) void
AsyncLoggerConfig.logInBackgroundThread
(LogEvent event) abstract void
EventRoute.logMessage
(AsyncAppender asyncAppender, LogEvent coreEvent) abstract void
EventRoute.logMessage
(AsyncLoggerConfig asyncLoggerConfig, LogEvent event) private void
AsyncLoggerConfig.logToAsyncDelegate
(LogEvent event) (package private) void
AsyncLoggerConfig.logToAsyncLoggerConfigsOnCurrentThread
(LogEvent event) Called by AsyncLoggerConfigHelper.RingBufferLog4jEventHandler.private void
AsyncLoggerConfig.populateLazilyInitializedFields
(LogEvent event) private LogEvent
AsyncLoggerConfigDisruptor.prepareEvent
(LogEvent event) private void
AsyncLoggerConfigDisruptor.showWarningAboutCustomLogEventWithReusableMessage
(LogEvent logEvent) boolean
AsyncLoggerConfigDelegate.tryEnqueue
(LogEvent event, AsyncLoggerConfig asyncLoggerConfig) boolean
AsyncLoggerConfigDisruptor.tryEnqueue
(LogEvent event, AsyncLoggerConfig asyncLoggerConfig) -
Uses of LogEvent in org.apache.logging.log4j.core.config
Methods in org.apache.logging.log4j.core.config with parameters of type LogEventModifier and TypeMethodDescriptionvoid
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 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 void
AppenderControl.handleAppenderError
(LogEvent event, RuntimeException ex) private boolean
AppenderControl.isFilteredByAppender
(LogEvent event) private boolean
AppenderControl.isFilteredByAppenderControl
(LogEvent event) private boolean
AppenderControl.isFilteredByLevel
(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
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.private void
LoggerConfig.logParent
(LogEvent event, LoggerConfig.LoggerConfigPredicate predicate) private void
LoggerConfig.processLogEvent
(LogEvent event, LoggerConfig.LoggerConfigPredicate predicate) private boolean
AppenderControl.shouldSkip
(LogEvent event) private void
AppenderControl.tryCallAppender
(LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.core.config.plugins.util
Fields in org.apache.logging.log4j.core.config.plugins.util declared as LogEventMethods in org.apache.logging.log4j.core.config.plugins.util with parameters of type LogEventModifier and TypeMethodDescriptionPluginBuilder.forLogEvent
(LogEvent event) Specifies the LogEvent that may be used to provide extra context for string substitutions. -
Uses of LogEvent in org.apache.logging.log4j.core.config.plugins.visitors
Methods in org.apache.logging.log4j.core.config.plugins.visitors with parameters of type LogEventModifier and TypeMethodDescriptionprivate Object
PluginAttributeVisitor.findDefaultValue
(LogEvent event) PluginAttributeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginBuilderAttributeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginConfigurationVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginElementVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginLoggerContextVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginNodeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginValueVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) Visits a Node to obtain a value for constructing a Plugin object. -
Uses of LogEvent in org.apache.logging.log4j.core.filter
Methods in org.apache.logging.log4j.core.filter with parameters of type LogEventModifier and TypeMethodDescriptionContext Filter method.Filter an 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. -
Uses of LogEvent in org.apache.logging.log4j.core.impl
Classes in org.apache.logging.log4j.core.impl that implement LogEventModifier and TypeClassDescriptionclass
Implementation of a LogEvent.class
Mutable implementation of theLogEvent
interface.Methods in org.apache.logging.log4j.core.impl that return LogEventModifier and TypeMethodDescriptionDefaultLogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message data, List<Property> properties, Throwable t) Creates a log event.DefaultLogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, Level level, Message data, List<Property> properties, Throwable t) Creates a log event.LocationAwareLogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message data, List<Property> properties, Throwable t) default LogEvent
LogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message data, List<Property> properties, Throwable t) LogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, Level level, Message data, List<Property> properties, Throwable t) ReusableLogEventFactory.createEvent
(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message message, List<Property> properties, Throwable t) Creates a log event.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) Methods in org.apache.logging.log4j.core.impl with parameters of type LogEventModifier and TypeMethodDescriptionstatic LogEvent
Log4jLogEvent.createMemento
(LogEvent logEvent) static Log4jLogEvent
Log4jLogEvent.createMemento
(LogEvent event, boolean includeLocation) Creates and returns a new immutable copy of thisLog4jLogEvent
.void
Initialize the fields of thisMutableLogEvent
from another event.static void
Switches thereserved
flag off if the specified event is a MutableLogEvent, otherwise does nothing.static Serializable
Take a snapshot of the specifiedLogEvent
.Constructors in org.apache.logging.log4j.core.impl with parameters of type LogEvent -
Uses of LogEvent in org.apache.logging.log4j.core.layout
Methods in org.apache.logging.log4j.core.layout that return LogEventModifier and TypeMethodDescriptionSerializedLayout.toSerializable
(LogEvent event) Deprecated.Returns the LogEvent.Methods in org.apache.logging.log4j.core.layout with parameters of type LogEventModifier and TypeMethodDescriptionprivate void
Rfc5424Layout.appendMessage
(StringBuilder buffer, LogEvent event) private void
Rfc5424Layout.appendStructuredElements
(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) LevelPatternSelector.getFormatters
(LogEvent event) MarkerPatternSelector.getFormatters
(LogEvent event) PatternSelector.getFormatters
(LogEvent event) ScriptPatternSelector.getFormatters
(LogEvent event) void
PatternLayout.serialize
(LogEvent event, StringBuilder stringBuilder) byte[]
AbstractStringLayout.toByteArray
(LogEvent event) Formats the Log Event as a byte array.byte[]
MessageLayout.toByteArray
(LogEvent event) byte[]
SerializedLayout.toByteArray
(LogEvent event) Deprecated.Formats aLogEvent
as a serialized byte array of the LogEvent object.AbstractStringLayout.Serializer.toSerializable
(LogEvent event) default StringBuilder
AbstractStringLayout.Serializer.toSerializable
(LogEvent event, StringBuilder builder) AbstractStringLayout.Serializer2.toSerializable
(LogEvent event, StringBuilder builder) HtmlLayout.toSerializable
(LogEvent event) Formats as a String.MessageLayout.toSerializable
(LogEvent event) PatternLayout.NoFormatPatternSerializer.toSerializable
(LogEvent event) PatternLayout.NoFormatPatternSerializer.toSerializable
(LogEvent event, StringBuilder buffer) PatternLayout.PatternFormatterPatternSerializer.toSerializable
(LogEvent event) PatternLayout.PatternFormatterPatternSerializer.toSerializable
(LogEvent event, StringBuilder buffer) PatternLayout.PatternSelectorSerializer.toSerializable
(LogEvent event) PatternLayout.PatternSelectorSerializer.toSerializable
(LogEvent event, StringBuilder buffer) PatternLayout.PatternSerializerWithReplacement.toSerializable
(LogEvent event) PatternLayout.PatternSerializerWithReplacement.toSerializable
(LogEvent event, StringBuilder buf) PatternLayout.toSerializable
(LogEvent event) Formats a logging event to a writer.Rfc5424Layout.toSerializable
(LogEvent event) Formats aLogEvent
in conformance with the RFC 5424 Syslog specification.SerializedLayout.toSerializable
(LogEvent event) Deprecated.Returns the LogEvent.SyslogLayout.toSerializable
(LogEvent event) Formats aLogEvent
in conformance with the BSD Log record format.private StringBuilder
PatternLayout.toText
(AbstractStringLayout.Serializer2 serializer, LogEvent event, StringBuilder destination) Creates a text representation of the specified log event and writes it into the specified StringBuilder. -
Uses of LogEvent in org.apache.logging.log4j.core.lookup
Methods in org.apache.logging.log4j.core.lookup with parameters of type LogEventModifier and TypeMethodDescriptionResolves the specified variable.default LookupResult
Same asStrLookup.lookup(LogEvent, String)
, but provides additional metadata describing the result.Looks up the value from the ThreadContext Map.Looks up d the current date or the date in the LogEvent.Looks up the value of the environment variable.Looks up the value from the logging event.Resolves the specified variable.Looks up the value of the environment variable.Looks up the value of the JNDI resource.Converts the "key" to lower case.Looks up the value for the key in the format "BundleName:BundleKey".Looks up a String key to a String value possibly using the current LogEvent.Looks up the value for the key using the data in the LogEvent.Looks up the value for the key using the data in the LogEvent.Converts the "key" to upper case.Replaces all the occurrences of variables with their matching values from the resolver using the given source array as a template.Replaces all the occurrences of variables with their matching values from the resolver using the given source array as a template.Replaces all the occurrences of variables in the given source object with their matching values from the resolver.Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template.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.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.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.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.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 LookupResult
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.private int
StrSubstitutor.substitute
(LogEvent event, StringBuilder buf, int offset, int length, List<String> priorVariables) Recursive handler for multiple levels of interpolation. -
Uses of LogEvent in org.apache.logging.log4j.core.net
Methods in org.apache.logging.log4j.core.net with parameters of type LogEventModifier and TypeMethodDescriptionabstract void
Adds an event to the cyclic buffer.abstract void
MailManager.sendEvents
(Layout<?> layout, LogEvent appendEvent) Send the contents of the cyclic buffer as an e-mail message. -
Uses of LogEvent in org.apache.logging.log4j.core.pattern
Methods in org.apache.logging.log4j.core.pattern with parameters of type LogEventModifier and TypeMethodDescriptionvoid
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
LevelPatternConverter.LevelMapLevelPatternConverter.format
(LogEvent event, StringBuilder output) Formats an event into a string buffer.void
LevelPatternConverter.SimpleLevelPatternConverter.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 ignored, 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) void
MessagePatternConverter.FormattedMessagePatternConverter.format
(LogEvent event, StringBuilder toAppendTo) Formats an event into a string buffer.void
MessagePatternConverter.RenderingPatternConverter.format
(LogEvent event, StringBuilder toAppendTo) Formats an event into a string buffer.void
MessagePatternConverter.SimpleMessagePatternConverter.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
RepeatPatternConverter.format
(LogEvent event, StringBuilder toAppendTo) Adds the repeated String to the 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.final void
SimpleLiteralPatternConverter.format
(LogEvent ignored, StringBuilder output) 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.private void
PatternFormatter.formatWithInfo
(LogEvent event, StringBuilder buf) protected String
(package private) void
EqualsBaseReplacementConverter.parseSubstitution
(LogEvent event, StringBuilder substitutionBuffer) Adds the parsed substitution text to the specified buffer. -
Uses of LogEvent in org.apache.logging.log4j.smtp
Fields in org.apache.logging.log4j.smtp with type parameters of type LogEventMethods in org.apache.logging.log4j.smtp that return LogEventModifier and TypeMethodDescription(package private) LogEvent[]
SmtpManager.removeAllBufferedEvents()
Methods in org.apache.logging.log4j.smtp with parameters of type LogEventModifier and TypeMethodDescriptionvoid
private void
private static jakarta.mail.internet.MimeMessage
SmtpManager.createMimeMessage
(MailManager.FactoryData data, jakarta.mail.Session session, LogEvent appendEvent) protected byte[]
SmtpManager.formatContentToBytes
(LogEvent[] priorEvents, LogEvent appendEvent, Layout<?> layout) void
SmtpManager.sendEvents
(Layout<?> layout, LogEvent appendEvent) protected void
SmtpManager.writeBuffer
(LogEvent[] priorEvents, LogEvent appendEvent, Layout<?> layout, OutputStream out) private void
SmtpManager.writeContent
(LogEvent[] priorEvents, LogEvent appendEvent, Layout<?> layout, ByteArrayOutputStream out) -
Uses of LogEvent in org.apache.logging.log4j.web
Methods in org.apache.logging.log4j.web with parameters of type LogEvent -
Uses of LogEvent in org.apache.logging.log4j.web.appender
Methods in org.apache.logging.log4j.web.appender with parameters of type LogEvent