Class JsonEncoderBase<E>

Type Parameters:
E -
All Implemented Interfaces:
Encoder<E>, ContextAware, LifeCycle

public abstract class JsonEncoderBase<E> extends EncoderBase<E>
This class allows for concrete encoders to write json log messages.
Author:
Henry John Kupty
  • Constructor Details

    • JsonEncoderBase

      public JsonEncoderBase()
  • Method Details

    • headerBytes

      public byte[] headerBytes()
      Description copied from interface: Encoder
      Get header bytes. This method is typically called upon opening of an output stream.
      Returns:
      header bytes. Null values are allowed.
    • footerBytes

      public byte[] footerBytes()
      Description copied from interface: Encoder
      Get footer bytes. This method is typically called prior to the closing of the stream where events are written.
      Returns:
      footer bytes. Null values are allowed.