Class RingBufferLogEventTranslator
java.lang.Object
org.apache.logging.log4j.core.async.RingBufferLogEventTranslator
- All Implemented Interfaces:
com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
public class RingBufferLogEventTranslator
extends Object
implements com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
This class is responsible for writing elements that make up a log event into
the ringbuffer
RingBufferLogEvent
. After this translator populated
the ringbuffer event, the disruptor will update the sequence number so that
the event can be consumed by another thread.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBasicValues
(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock) void
translateTo
(RingBufferLogEvent event, long sequence) void
-
Field Details
-
marker
-
fqcn
-
level
-
message
-
thrown
-
-
Constructor Details
-
RingBufferLogEventTranslator
public RingBufferLogEventTranslator()
-
-
Method Details
-
translateTo
- Specified by:
translateTo
in interfacecom.lmax.disruptor.EventTranslator<RingBufferLogEvent>
-
setBasicValues
public void setBasicValues(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock) -
updateThreadValues
public void updateThreadValues()
-