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 Details

    • TjahziByteBufferDestination

      public TjahziByteBufferDestination(int maxLogLineSizeBytes)
  • Method Details

    • drainRemaining

      public void drainRemaining()
    • getByteBuffer

      public ByteBuffer getByteBuffer()
      Specified by:
      getByteBuffer in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
    • drain

      public ByteBuffer drain(ByteBuffer buf)
      Specified by:
      drain in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
    • writeBytes

      public void writeBytes(ByteBuffer data)
      Specified by:
      writeBytes in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
    • writeBytes

      public void writeBytes(byte[] data, int offset, int length)
      Specified by:
      writeBytes in interface org.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)