Class LogzioSender

java.lang.Object
io.logz.sender.LogzioSender

public class LogzioSender extends Object
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • drainQueueAndSend

      public void drainQueueAndSend()
    • clearQueue

      public void clearQueue() throws IOException
      Throws:
      IOException
    • send

      public void send(com.google.gson.JsonObject jsonMessage)
    • send

      public void send(byte[] jsonStringAsUTF8ByteArray)
      Send byte array to Logz.io This method is not the recommended method to use since it is up to the user to supply with a valid UTF8 json byte array representation, and converting the byte array to JsonObject is necessary for log size validation. In any case the byte[] is not valid, the logs will not be sent.
      Parameters:
      jsonStringAsUTF8ByteArray - UTF8 byte array representation of a valid json object.
    • builder

      public static LogzioSender.Builder builder()