emit

abstract fun emit(logs: List<JSONObject>, onSuccess: () -> Unit, onFailed: (Throwable) -> Unit)

Emits the logs.

Parameters

logs

The logs in JSON format

onSuccess

Should be invoked if successful.

onFailed

Should be invoked if failed.

override fun emit(log: JSONObject)

Stores the log instead of emitting immediately