# 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.

{% code title="Kotlin" %}

```kotlin
fun log(
priority: Int, 
message: String?
)
```

{% endcode %}

| PARAMETER  | STATUS   | TYPE   | DESCRIPTION                                                                                                                                                                                                      |
| ---------- | -------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `priority` | Required | String | <p>Event type you are logging. Use the following options:<br></p><ul><li><code>0</code> or <code>DEBUG</code></li><li><code>1</code> or <code>INFO</code></li><li><code>2</code> or <code>ERROR</code></li></ul> |
| `message`  | Required | String | The string you want to capture in the log.                                                                                                                                                                       |

### Example <a href="#h_01k57gkakt51vny344wxv3xwwr" id="h_01k57gkakt51vny344wxv3xwwr"></a>

{% code title="Kotlin" %}

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

     // ...
}
// ...
```

{% endcode %}

<br>
