public class ReusableLogEventFactory extends Object implements org.apache.logging.log4j.core.impl.LogEventFactory, org.apache.logging.log4j.core.impl.LocationAwareLogEventFactory
| Constructor and Description |
|---|
ReusableLogEventFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.logging.log4j.core.LogEvent |
createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<org.apache.logging.log4j.core.config.Property> properties,
Throwable t)
Creates a log event.
|
org.apache.logging.log4j.core.LogEvent |
createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<org.apache.logging.log4j.core.config.Property> properties,
Throwable t)
Creates a log event.
|
static void |
release(org.apache.logging.log4j.core.LogEvent logEvent)
Switches the
reserved flag off if the specified event is a MutableLogEvent, otherwise does nothing. |
public org.apache.logging.log4j.core.LogEvent createEvent(String loggerName, org.apache.logging.log4j.Marker marker, String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.message.Message message, List<org.apache.logging.log4j.core.config.Property> properties, Throwable t)
createEvent in interface org.apache.logging.log4j.core.impl.LogEventFactoryloggerName - The name of the Logger.marker - An optional Marker.fqcn - The fully qualified class name of the caller.level - The event Level.message - The Message.properties - Properties to be added to the log event.t - An optional Throwable.public org.apache.logging.log4j.core.LogEvent createEvent(String loggerName, org.apache.logging.log4j.Marker marker, String fqcn, StackTraceElement location, org.apache.logging.log4j.Level level, org.apache.logging.log4j.message.Message message, List<org.apache.logging.log4j.core.config.Property> properties, Throwable t)
createEvent in interface org.apache.logging.log4j.core.impl.LocationAwareLogEventFactorycreateEvent in interface org.apache.logging.log4j.core.impl.LogEventFactoryloggerName - The name of the Logger.marker - An optional Marker.fqcn - The fully qualified class name of the caller.location - The location of the caller.level - The event Level.message - The Message.properties - Properties to be added to the log event.t - An optional Throwable.public static void release(org.apache.logging.log4j.core.LogEvent logEvent)
reserved flag off if the specified event is a MutableLogEvent, otherwise does nothing.
This flag is used internally to verify that a reusable log event is no longer in use and can be reused.logEvent - the log event to make available againCopyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.