Class LogzioSender

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

public class LogzioSender extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    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.
    void
    send(com.google.gson.JsonObject jsonMessage)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • drainQueueAndSend

      public void drainQueueAndSend()
    • 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()