public class DefaultLogEventFactory extends java.lang.Object implements LogEventFactory, LocationAwareLogEventFactory
Modifier and Type | Field and Description |
---|---|
private static DefaultLogEventFactory |
instance |
Constructor and Description |
---|
DefaultLogEventFactory() |
Modifier and Type | Method and Description |
---|---|
LogEvent |
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 |
createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
java.lang.StackTraceElement location,
Level level,
Message data,
java.util.List<Property> properties,
java.lang.Throwable t)
Creates a log event.
|
static DefaultLogEventFactory |
getInstance() |
private static final DefaultLogEventFactory instance
public static DefaultLogEventFactory getInstance()
public LogEvent createEvent(java.lang.String loggerName, Marker marker, java.lang.String fqcn, Level level, Message data, java.util.List<Property> properties, java.lang.Throwable t)
createEvent
in interface LogEventFactory
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.public LogEvent createEvent(java.lang.String loggerName, Marker marker, java.lang.String fqcn, java.lang.StackTraceElement location, Level level, Message data, java.util.List<Property> properties, java.lang.Throwable t)
createEvent
in interface LocationAwareLogEventFactory
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.