Top Description Fields Constructors Methods
org.apache.logging.log4j

public final Class EventLogger

extends Object
Class Inheritance
Imports
org.apache.logging.log4j.message.StructuredDataMessage, org.apache.logging.log4j.spi.ExtendedLogger

Logs "Events" that are represented as StructuredDataMessage.

Field Summary

Modifier and TypeField and Description
public static final Marker
EVENT_MARKER

Defines the Event Marker.

private static final String
private static final ExtendedLogger
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
logEvent(final StructuredDataMessage
The event StructuredDataMessage.
msg
)

Logs events with a level of ALL.

public static void
logEvent(final StructuredDataMessage
The event StructuredDataMessage.
msg
,
final Level
The logging Level.
level
)

Logs events and specify the logging level.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EVENT_MARKERback to summary
public static final Marker EVENT_MARKER

Defines the Event Marker.

FQCNback to summary
private static final String FQCN
LOGGERback to summary
private static final ExtendedLogger LOGGER
NAMEback to summary
private static final String NAME

Constructor Detail

EventLoggerback to summary
private EventLogger()

Method Detail

logEventback to summary
public static void logEvent(final StructuredDataMessage msg)

Logs events with a level of ALL.

Parameters
msg:StructuredDataMessage

The event StructuredDataMessage.

logEventback to summary
public static void logEvent(final StructuredDataMessage msg, final Level level)

Logs events and specify the logging level.

Parameters
msg:StructuredDataMessage

The event StructuredDataMessage.

level:Level

The logging Level.