Package io.logz.sender
Class LogzioSender
java.lang.Object
io.logz.sender.LogzioSender
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LogzioSender.Builderbuilder()voidvoidsend(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.voidsend(com.google.gson.JsonObject jsonMessage) voidstart()voidstop()
-
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
-