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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalturbine.com/dt-ignite/ignite-services/sdk-reference/log-sdk-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
