# Logs API

This logging mechanism is **configurable** via the `enabled` flag (`true` or `false`) under the `logsApi` configuration.\
There is **no functional impact** from this change — it only adds optional error logging to AWS for better monitoring and debugging.

<figure><img src="https://4135222975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvaZrbJ8FtxIhaeSv0XRE%2Fuploads%2FYOSOTsHvGY7Ld5jarKec%2Fimage.png?alt=media&#x26;token=3ca9ef71-97fb-4bd9-a9a7-152e4c7e9041" alt=""><figcaption></figcaption></figure>

Sample configuration:

```
{
        "host": "${DBKS:DB_LOG_URL}",
        "enabled": true
}
```

**Configuration Details:**

`host` This field specifies the host url for the logs. host url will be available in dashboard config key store with key **DB\_LOG\_URL**

`enable` This field can be set either *True* or *False.* If set to true then it will capture and send errors to AWS CloudWatch for better monitoring and debugging. If set to false then errors would not be logged on AWS.
