Package pl.tkowalcz.tjahzi.log4j2
Class TjahziByteBufferDestination
- java.lang.Object
-
- pl.tkowalcz.tjahzi.log4j2.TjahziByteBufferDestination
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.layout.ByteBufferDestination
public class TjahziByteBufferDestination extends Object implements org.apache.logging.log4j.core.layout.ByteBufferDestination
-
-
Constructor Summary
Constructors Constructor Description TjahziByteBufferDestination(int maxLogLineSizeBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferdrain(ByteBuffer buf)voiddrainRemaining()ByteBuffergetByteBuffer()voidinitialize(BiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer> drain, org.apache.logging.log4j.core.LogEvent context)voidwriteBytes(byte[] data, int offset, int length)voidwriteBytes(ByteBuffer data)
-
-
-
Method Detail
-
drainRemaining
public void drainRemaining()
-
getByteBuffer
public ByteBuffer getByteBuffer()
- Specified by:
getByteBufferin interfaceorg.apache.logging.log4j.core.layout.ByteBufferDestination
-
drain
public ByteBuffer drain(ByteBuffer buf)
- Specified by:
drainin interfaceorg.apache.logging.log4j.core.layout.ByteBufferDestination
-
writeBytes
public void writeBytes(ByteBuffer data)
- Specified by:
writeBytesin interfaceorg.apache.logging.log4j.core.layout.ByteBufferDestination
-
writeBytes
public void writeBytes(byte[] data, int offset, int length)- Specified by:
writeBytesin interfaceorg.apache.logging.log4j.core.layout.ByteBufferDestination
-
initialize
public void initialize(BiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer> drain, org.apache.logging.log4j.core.LogEvent context)
-
-