Log SDK Events

The Ignite Services SDK can log information on the client side. Each log entry on the client side is also captured locally on the device and in Ignite.

Kotlin
fun log(
priority: Int, 
message: String?
)
PARAMETER
STATUS
TYPE
DESCRIPTION

priority

Required

String

Event type you are logging. Use the following options:

  • 0 or DEBUG

  • 1 or INFO

  • 2 or ERROR

message

Required

String

The string you want to capture in the log.

Example

Kotlin
// ...
api?.install(data, object: IIgniteServiceCallback.Stub() {
     override fun onStart(data: String?) {
          api?.log(Priority.INFO, "Installation started for $data")
          // other code
     }

     // ...
}
// ...

Last updated