Uses of Interface
org.apache.logging.log4j.core.LogEvent
-
Packages that use LogEvent 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 -
-
Uses of LogEvent in org.apache.log4j.layout
Methods in org.apache.log4j.layout with parameters of type LogEvent Modifier and Type Method Description voidLog4j1XmlLayout. encode(LogEvent event, ByteBufferDestination destination)java.lang.StringLog4j1XmlLayout. toSerializable(LogEvent event) -
Uses of LogEvent in org.apache.log4j.pattern
Methods in org.apache.log4j.pattern with parameters of type LogEvent Modifier and Type Method Description voidLog4j1MdcPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidLog4j1NdcPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo) -
Uses of LogEvent in org.apache.logging.log4j.core
Classes in org.apache.logging.log4j.core that implement LogEvent Modifier and Type Class Description classAbstractLogEventAn abstract log event implementation with default values for all methods.Methods in org.apache.logging.log4j.core that return LogEvent Modifier and Type Method Description LogEventAbstractLogEvent. toImmutable()Subclasses should implement this method to provide an immutable version.LogEventLogEvent. 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 LogEvent Modifier and Type Method Description voidAppender. append(LogEvent event)Logs a LogEvent using whatever logic this Appender wishes to use.voidErrorHandler. error(java.lang.String msg, LogEvent event, java.lang.Throwable t)Handle an error with a message, and exception and a logging event.Filter.ResultFilter. filter(LogEvent event)Filter an event.voidLogEventListener. log(LogEvent event)voidLogger.PrivateConfig. logEvent(LogEvent event)byte[]Layout. toByteArray(LogEvent event)Formats the event suitable for display.TLayout. toSerializable(LogEvent event)Formats the event as an Object that can be serialized. -
Uses of LogEvent in org.apache.logging.log4j.core.appender
Methods in org.apache.logging.log4j.core.appender with parameters of type LogEvent Modifier and Type Method Description voidAbstractOutputStreamAppender. append(LogEvent event)Actual writing occurs here.voidAbstractWriterAppender. append(LogEvent event)Actual writing occurs here.voidAsyncAppender. append(LogEvent logEvent)Actual writing occurs here.voidCountingNoOpAppender. append(LogEvent event)voidFailoverAppender. append(LogEvent event)Handle the Log event.voidHttpAppender. append(LogEvent event)voidMemoryMappedFileAppender. append(LogEvent event)Write the log entry rolling over the file when required.voidNullAppender. append(LogEvent event)voidRandomAccessFileAppender. append(LogEvent event)Write the log entry rolling over the file when required.voidRollingFileAppender. append(LogEvent event)Writes the log entry rolling over the file when required.voidRollingRandomAccessFileAppender. append(LogEvent event)Write the log entry rolling over the file when required.voidScriptAppenderSelector. append(LogEvent event)voidSmtpAppender. 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 voidAbstractOutputStreamAppender. directEncodeEvent(LogEvent event)protected voidSocketAppender. directEncodeEvent(LogEvent event)voidAbstractAppender. error(java.lang.String msg, LogEvent event, java.lang.Throwable t)Handle an error with a message, exception, and a logging event, using theErrorHandlerconfigured for this Appender.voidDefaultErrorHandler. error(java.lang.String msg, LogEvent event, java.lang.Throwable t)Handle an error with a message, and exception and a logging event.booleanSmtpAppender. isFiltered(LogEvent event)Capture all events in CyclicBuffer.voidAsyncAppender. logMessageInBackgroundThread(LogEvent logEvent)FOR INTERNAL USE ONLY.voidAsyncAppender. logMessageInCurrentThread(LogEvent logEvent)FOR INTERNAL USE ONLY.abstract voidHttpManager. send(Layout<?> layout, LogEvent event)voidHttpURLConnectionManager. send(Layout<?> layout, LogEvent event)protected java.io.SerializableAbstractAppender. toSerializable(LogEvent event)Serializes the given event using the appender's layout if present.protected voidAbstractOutputStreamAppender. writeByteArrayToManager(LogEvent event)Method parameters in org.apache.logging.log4j.core.appender with type arguments of type LogEvent Modifier and Type Method Description AsyncAppender.BuilderAsyncAppender.Builder. setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.db
Methods in org.apache.logging.log4j.core.appender.db that return types with arguments of type LogEvent Modifier and Type Method Description Layout<LogEvent>AbstractDatabaseAppender. getLayout()This always returnsnull, as database appenders do not use a single layout.Methods in org.apache.logging.log4j.core.appender.db with parameters of type LogEvent Modifier and Type Method Description voidAbstractDatabaseAppender. append(LogEvent event)protected voidAbstractDatabaseManager. buffer(LogEvent event)voidAbstractDatabaseManager. write(LogEvent event)Deprecated.since 2.11.0 UseAbstractDatabaseManager.write(LogEvent, Serializable).voidAbstractDatabaseManager. write(LogEvent event, java.io.Serializable serializable)This method manages buffering and writing of events.protected voidAbstractDatabaseManager. writeInternal(LogEvent event)Deprecated.protected abstract voidAbstractDatabaseManager. writeInternal(LogEvent event, java.io.Serializable serializable)Performs the actual writing of the event in an implementation-specific way.protected voidAbstractDatabaseManager. writeThrough(LogEvent event, java.io.Serializable serializable) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.db.jdbc
Methods in org.apache.logging.log4j.core.appender.db.jdbc with parameters of type LogEvent Modifier and Type Method Description protected voidJdbcDatabaseManager. writeInternal(LogEvent event, java.io.Serializable serializable)protected voidJdbcDatabaseManager. writeThrough(LogEvent event, java.io.Serializable serializable) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.mom
Methods in org.apache.logging.log4j.core.appender.mom with parameters of type LogEvent Modifier and Type Method Description voidJmsAppender. append(LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.mom.jeromq
Methods in org.apache.logging.log4j.core.appender.mom.jeromq with parameters of type LogEvent Modifier and Type Method Description voidJeroMqAppender. append(LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.nosql
Methods in org.apache.logging.log4j.core.appender.nosql with parameters of type LogEvent Modifier and Type Method Description protected voidNoSqlDatabaseManager. writeInternal(LogEvent event, java.io.Serializable serializable) -
Uses of LogEvent in org.apache.logging.log4j.core.appender.rewrite
Methods in org.apache.logging.log4j.core.appender.rewrite that return LogEvent Modifier and Type Method Description LogEventLoggerNameLevelRewritePolicy. rewrite(LogEvent event)LogEventMapRewritePolicy. rewrite(LogEvent source)Rewrite the event.LogEventPropertiesRewritePolicy. rewrite(LogEvent source)Rewrites the event.LogEventRewritePolicy. rewrite(LogEvent source)Rewrite a logging event.Methods in org.apache.logging.log4j.core.appender.rewrite with parameters of type LogEvent Modifier and Type Method Description voidRewriteAppender. append(LogEvent event)Modifies the event and pass to the subordinate Appenders.LogEventLoggerNameLevelRewritePolicy. rewrite(LogEvent event)LogEventMapRewritePolicy. rewrite(LogEvent source)Rewrite the event.LogEventPropertiesRewritePolicy. rewrite(LogEvent source)Rewrites the event.LogEventRewritePolicy. rewrite(LogEvent source)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 LogEvent Modifier and Type Method Description voidRollingFileManager. checkRollover(LogEvent event)Determines if a rollover should occur.booleanCompositeTriggeringPolicy. isTriggeringEvent(LogEvent event)Determines if a rollover should occur.booleanCronTriggeringPolicy. isTriggeringEvent(LogEvent event)Determines whether a rollover should occur.booleanNoOpTriggeringPolicy. isTriggeringEvent(LogEvent logEvent)booleanOnStartupTriggeringPolicy. isTriggeringEvent(LogEvent event)Determine if a rollover should be triggered.booleanSizeBasedTriggeringPolicy. isTriggeringEvent(LogEvent event)Returns true if a rollover should occur.booleanTimeBasedTriggeringPolicy. isTriggeringEvent(LogEvent event)Determines whether a rollover should occur.booleanTriggeringPolicy. 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 LogEvent Modifier and Type Method Description voidRoutingAppender. append(LogEvent event)java.lang.StringRoutes. getPattern(LogEvent event, java.util.concurrent.ConcurrentMap<java.lang.Object,java.lang.Object> scriptStaticVariables)Returns the pattern.voidIdlePurgePolicy. update(java.lang.String key, LogEvent event)voidPurgePolicy. update(java.lang.String key, LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.core.async
Classes in org.apache.logging.log4j.core.async that implement LogEvent Modifier and Type Class Description classRingBufferLogEventWhen the Disruptor is started, the RingBuffer is populated with event objects.Methods in org.apache.logging.log4j.core.async that return LogEvent Modifier and Type Method Description LogEventRingBufferLogEvent. createMemento()Creates and returns a new immutable copy of thisRingBufferLogEvent.LogEventRingBufferLogEvent. toImmutable()Methods in org.apache.logging.log4j.core.async with parameters of type LogEvent Modifier and Type Method Description protected voidAsyncLoggerConfig. callAppenders(LogEvent event)voidAsyncLoggerConfigDelegate. enqueueEvent(LogEvent event, AsyncLoggerConfig asyncLoggerConfig)voidAsyncLoggerConfigDisruptor. enqueueEvent(LogEvent event, AsyncLoggerConfig asyncLoggerConfig)protected voidAsyncLoggerConfig. log(LogEvent event, LoggerConfig.LoggerConfigPredicate predicate)abstract voidEventRoute. logMessage(AsyncAppender asyncAppender, LogEvent coreEvent)abstract voidEventRoute. logMessage(AsyncLoggerConfig asyncLoggerConfig, LogEvent event)booleanAsyncLoggerConfigDelegate. tryEnqueue(LogEvent event, AsyncLoggerConfig asyncLoggerConfig)booleanAsyncLoggerConfigDisruptor. 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 LogEvent Modifier and Type Method Description voidAppenderControl. callAppender(LogEvent event)Call the appender.protected voidLoggerConfig. callAppenders(LogEvent event)voidAbstractConfiguration. createConfiguration(Node node, LogEvent event)voidConfiguration. createConfiguration(Node node, LogEvent event)voidAwaitCompletionReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)voidAwaitUnconditionallyReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)voidDefaultReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)voidLockingReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)voidLoggerConfig. log(LogEvent event)Logs an event.protected voidLoggerConfig. log(LogEvent event, LoggerConfig.LoggerConfigPredicate predicate)Logs an event.voidReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)Logs an event. -
Uses of LogEvent in org.apache.logging.log4j.core.config.plugins.util
Methods in org.apache.logging.log4j.core.config.plugins.util with parameters of type LogEvent Modifier and Type Method Description PluginBuilderPluginBuilder. 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 LogEvent Modifier and Type Method Description java.lang.ObjectPluginAttributeVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginBuilderAttributeVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginConfigurationVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginElementVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginNodeVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginValueVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)java.lang.ObjectPluginVisitor. visit(Configuration configuration, Node node, LogEvent event, java.lang.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 LogEvent Modifier and Type Method Description Filter.ResultAbstractFilter. filter(LogEvent event)Context Filter method.Filter.ResultBurstFilter. filter(LogEvent event)Filter.ResultCompositeFilter. filter(LogEvent event)Filter an event.Filter.ResultDynamicThresholdFilter. filter(LogEvent event)Filter.ResultLevelRangeFilter. filter(LogEvent event)Filter.ResultMapFilter. filter(LogEvent event)Filter.ResultMarkerFilter. filter(LogEvent event)Filter.ResultRegexFilter. filter(LogEvent event)Filter.ResultScriptFilter. filter(LogEvent event)Filter.ResultStructuredDataFilter. filter(LogEvent event)Filter.ResultThreadContextMapFilter. filter(LogEvent event)Filter.ResultThresholdFilter. filter(LogEvent event)Filter.ResultTimeFilter. filter(LogEvent event)booleanAbstractFilterable. isFiltered(LogEvent event)Determine if the LogEvent should be processed or ignored.booleanFilterable. 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 LogEvent Modifier and Type Class Description classLog4jLogEventImplementation of a LogEvent.classMutableLogEventMutable implementation of theLogEventinterface.Methods in org.apache.logging.log4j.core.impl that return LogEvent Modifier and Type Method Description LogEventDefaultLogEventFactory. 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.LogEventLogEventFactory. createEvent(java.lang.String loggerName, Marker marker, java.lang.String fqcn, Level level, Message data, java.util.List<Property> properties, java.lang.Throwable t)LogEventReusableLogEventFactory. 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.static LogEventLog4jLogEvent. createMemento(LogEvent logEvent)Methods in org.apache.logging.log4j.core.impl with parameters of type LogEvent Modifier and Type Method Description static LogEventLog4jLogEvent. createMemento(LogEvent logEvent)static Log4jLogEventLog4jLogEvent. createMemento(LogEvent event, boolean includeLocation)Creates and returns a new immutable copy of thisLog4jLogEvent.voidMutableLogEvent. initFrom(LogEvent event)Initialize the fields of thisMutableLogEventfrom another event.static voidReusableLogEventFactory. release(LogEvent logEvent)Switches thereservedflag off if the specified event is a MutableLogEvent, otherwise does nothing.static java.io.SerializableLog4jLogEvent. serialize(LogEvent event, boolean includeLocation)Take a snapshot of the specifiedLogEvent.Constructors in org.apache.logging.log4j.core.impl with parameters of type LogEvent Constructor Description Builder(LogEvent other) -
Uses of LogEvent in org.apache.logging.log4j.core.layout
Methods in org.apache.logging.log4j.core.layout that return LogEvent Modifier and Type Method Description LogEventSerializedLayout. toSerializable(LogEvent event)Deprecated.Returns the LogEvent.Methods in org.apache.logging.log4j.core.layout with parameters of type LogEvent Modifier and Type Method Description voidAbstractLayout. encode(LogEvent event, ByteBufferDestination destination)Encodes the specified source LogEvent to some binary representation and writes the result to the specified destination.voidGelfLayout. encode(LogEvent event, ByteBufferDestination destination)voidPatternLayout. 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 aLogEventas a serialized byte array of the LogEvent object.java.lang.StringAbstractStringLayout.Serializer. toSerializable(LogEvent event)java.lang.StringBuilderAbstractStringLayout.Serializer2. toSerializable(LogEvent event, java.lang.StringBuilder builder)java.lang.StringCsvLogEventLayout. toSerializable(LogEvent event)java.lang.StringCsvParameterLayout. toSerializable(LogEvent event)java.lang.StringGelfLayout. toSerializable(LogEvent event)java.lang.StringHtmlLayout. toSerializable(LogEvent event)Formats as a String.voidJsonLayout. toSerializable(LogEvent event, java.io.Writer writer)MessageMessageLayout. toSerializable(LogEvent event)java.lang.StringPatternLayout. toSerializable(LogEvent event)Formats a logging event to a writer.java.lang.StringRfc5424Layout. toSerializable(LogEvent event)Formats aLogEventin conformance with the RFC 5424 Syslog specification.LogEventSerializedLayout. toSerializable(LogEvent event)Deprecated.Returns the LogEvent.java.lang.StringSyslogLayout. toSerializable(LogEvent event)Formats aLogEventin conformance with the BSD Log record format. -
Uses of LogEvent in org.apache.logging.log4j.core.lookup
Methods in org.apache.logging.log4j.core.lookup with parameters of type LogEvent Modifier and Type Method Description java.lang.StringContextMapLookup. lookup(LogEvent event, java.lang.String key)Looks up the value from the ThreadContext Map.java.lang.StringDateLookup. lookup(LogEvent event, java.lang.String key)Looks up the value of the environment variable.java.lang.StringEnvironmentLookup. lookup(LogEvent event, java.lang.String key)Looks up the value of the environment variable.java.lang.StringInterpolator. lookup(LogEvent event, java.lang.String var)Resolves the specified variable.java.lang.StringJavaLookup. lookup(LogEvent event, java.lang.String key)Looks up the value of the environment variable.java.lang.StringJndiLookup. lookup(LogEvent event, java.lang.String key)Looks up the value of the JNDI resource.java.lang.StringLog4jLookup. lookup(LogEvent event, java.lang.String key)java.lang.StringMainMapLookup. lookup(LogEvent event, java.lang.String key)java.lang.StringMapLookup. lookup(LogEvent event, java.lang.String key)java.lang.StringMarkerLookup. lookup(LogEvent event, java.lang.String key)java.lang.StringResourceBundleLookup. lookup(LogEvent event, java.lang.String key)Looks up the value for the key in the format "BundleName:BundleKey".java.lang.StringStrLookup. lookup(LogEvent event, java.lang.String key)Looks up a String key to a String value possibly using the current LogEvent.java.lang.StringStructuredDataLookup. lookup(LogEvent event, java.lang.String key)Looks up the value for the key using the data in the LogEvent.java.lang.StringSystemPropertiesLookup. lookup(LogEvent event, java.lang.String key)Looks up the value for the key using the data in the LogEvent.java.lang.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.StringStrSubstitutor. 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.booleanStrSubstitutor. 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.booleanStrSubstitutor. 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.booleanStrSubstitutor. 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.StringStrSubstitutor. 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 booleanStrSubstitutor. substitute(LogEvent event, java.lang.StringBuilder buf, int offset, int length)Internal method that substitutes the variables. -
Uses of LogEvent in org.apache.logging.log4j.core.net
Methods in org.apache.logging.log4j.core.net with parameters of type LogEvent Modifier and Type Method Description voidSmtpManager. add(LogEvent event)protected byte[]SmtpManager. formatContentToBytes(LogEvent[] priorEvents, LogEvent appendEvent, Layout<?> layout)voidSmtpManager. sendEvents(Layout<?> layout, LogEvent appendEvent)Send the contents of the cyclic buffer as an e-mail message.protected voidSmtpManager. writeBuffer(LogEvent[] priorEvents, LogEvent appendEvent, Layout<?> layout, java.io.OutputStream out) -
Uses of LogEvent in org.apache.logging.log4j.core.parser
Methods in org.apache.logging.log4j.core.parser that return LogEvent Modifier and Type Method Description LogEventLogEventParser. parseFrom(byte[] input)Parses a byte array, which is expected to contain exactly one log event.LogEventLogEventParser. parseFrom(byte[] input, int offset, int length)Parses a specified range in a byte array.LogEventTextLogEventParser. parseFrom(java.lang.String input)Parses a String, which is expected to contain exactly one log event. -
Uses of LogEvent in org.apache.logging.log4j.core.pattern
Methods in org.apache.logging.log4j.core.pattern with parameters of type LogEvent Modifier and Type Method Description voidAbstractStyleNameConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidClassNamePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Format a logging event.voidDatePatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidEncodingPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidEndOfBatchPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidEqualsBaseReplacementConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidExtendedThrowablePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidFileLocationPatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidFullLocationPatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidHighlightConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidLevelPatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidLineLocationPatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidLineSeparatorPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidLiteralPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.abstract voidLogEventPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidLoggerFqcnPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidLoggerPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMapPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMarkerPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMarkerSimpleNamePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMaxLengthConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)voidMdcPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMessagePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidMethodLocationPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidNanoTimePatternConverter. format(LogEvent event, java.lang.StringBuilder output)Formats an event into a string buffer.voidNdcPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)voidPatternFormatter. format(LogEvent event, java.lang.StringBuilder buf)voidProcessIdPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidRegexReplacementConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidRelativeTimePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidRootThrowablePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidSequenceNumberPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidStyleConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidThreadIdPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidThreadNamePatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidThreadPriorityPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidThrowablePatternConverter. format(LogEvent event, java.lang.StringBuilder buffer)Formats an event into a string buffer.voidUuidPatternConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.voidVariablesNotEmptyReplacementConverter. format(LogEvent event, java.lang.StringBuilder toAppendTo)Formats an event into a string buffer.protected java.lang.StringThrowablePatternConverter. getSuffix(LogEvent event) -
Uses of LogEvent in org.apache.logging.log4j.web
Methods in org.apache.logging.log4j.web with parameters of type LogEvent Modifier and Type Method Description java.lang.StringWebLookup. lookup(LogEvent event, java.lang.String key) -
Uses of LogEvent in org.apache.logging.log4j.web.appender
Methods in org.apache.logging.log4j.web.appender with parameters of type LogEvent Modifier and Type Method Description voidServletAppender. append(LogEvent event)
-