Class DefaultLogEventFactory
- java.lang.Object
-
- org.apache.logging.log4j.core.impl.DefaultLogEventFactory
-
- All Implemented Interfaces:
LocationAwareLogEventFactory
,LogEventFactory
public class DefaultLogEventFactory extends Object implements LogEventFactory, LocationAwareLogEventFactory
Always creates new LogEvent instances.
-
-
Constructor Summary
Constructors Constructor Description DefaultLogEventFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEvent
createEvent(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message data, List<Property> properties, Throwable t)
Creates a log event.LogEvent
createEvent(String loggerName, Marker marker, String fqcn, Level level, Message data, List<Property> properties, Throwable t)
Creates a log event.static DefaultLogEventFactory
getInstance()
-
-
-
Method Detail
-
getInstance
public static DefaultLogEventFactory getInstance()
-
createEvent
public LogEvent createEvent(String loggerName, Marker marker, String fqcn, Level level, Message data, List<Property> properties, Throwable t)
Creates a log event.- Specified by:
createEvent
in interfaceLogEventFactory
- Parameters:
loggerName
- The name of the Logger.marker
- An optional Marker.fqcn
- The fully qualified class name of the caller.level
- The event Level.data
- The Message.properties
- Properties to be added to the log event.t
- An optional Throwable.- Returns:
- The LogEvent.
-
createEvent
public LogEvent createEvent(String loggerName, Marker marker, String fqcn, StackTraceElement location, Level level, Message data, List<Property> properties, Throwable t)
Creates a log event.- Specified by:
createEvent
in interfaceLocationAwareLogEventFactory
- Parameters:
loggerName
- The name of the Logger.marker
- An optional Marker.fqcn
- The fully qualified class name of the caller.location
- The location of the callerlevel
- The event Level.data
- The Message.properties
- Properties to be added to the log event.t
- An optional Throwable.- Returns:
- The LogEvent.
-
-