# Error Logs

## Logged

`com.twilio.error-logs.error.logged`

> \[!NOTE]
>
> Some [Twilio Serverless](/docs/serverless) and [Studio](/docs/studio) `Info` and `Warning` events are logged under the `com.twilio.error-logs.error.logged` event type for informational purposes. For instance, any `console.log` that gets called inside a Twilio Serverless Function with `"LogLevel":"INFO"` appears under the `com.twilio.error-logs.error.logged` event type.

Error Logs Logged events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the [Webhook](/docs/events/webhook-quickstart) or [Kinesis](/docs/events/eventstreams-quickstart) quickstarts and refer to the [product documentation](/docs/usage/troubleshooting/debugging-event-webhooks).

**Examples**

```json
{
  "specversion" : "1.0",
  "type" : "com.twilio.error-logs.error.logged",
  "source" : "AB00000000000000000000000001",
  "id" : "NO00000000000000000000000001",
  "dataschema" : "https://events-schemas.twilio.com/ErrorLogs.Error/2",
  "datacontenttype" : "2025-10-08T07:17:02.363Z",
  "data" : {
    "sid" : "NO0000000000000000000000000000001",
    "account_sid" : "AC0000000000000000000000000000001",
    "date_created" : "2025-01-01T00:00:00.000Z",
    "level" : "INFO",
    "master_account_sid" : "AC0000000000000000000000000000001",
    "request_sid" : "RQ0000000000000000000000000000001",
    "service_sid" : "ZH0000000000000000000000000000001",
    "correlation_sid" : "ZE0000000000000000000000000000001",
    "product_name" : "Event Streams",
    "error_code" : "93101",
    "payload" : "{\"error_code\":93101,\"message\":\"Error delivering event to webhook: 500 Internal Server Error\"}"
  }
}
```

**Versions**

#### v2 (latest)

> \[!NOTE]
>
> v2 only contains updates to the schema metadata. In other words, there are no new fields between v1 and v2.

* `string` **sid** (required). SID for the debug event.
* `string` **account\_sid** (required). The accound SID the debug event belongs to.
* `string` **date\_created** (required). The date the debug event was created.
* `string` **level**. The log level of the debug event.
* `string` **master\_account\_sid**. The account SID of the parent account the debug event belongs to.
* `string` **request\_sid**. The request SID of the debug event.
* `string` **service\_sid**. The service SID of the debug event.
* `string` **correlation\_sid**. The correlation SID of the debug event.
* `string` **product\_name**. The Twilio product which created the debug event.
* `string` **error\_code**. The Twilio error code which is associated with the debug event.
* `string` **payload**. The payload of the debug event.

The full specification for version 2 is also available as a [JSON schema](https://events-schemas.twilio.com/ErrorLogs.Error/2).

#### v1

* `string` **sid** (required). SID for the debug event.
* `string` **account\_sid** (required). The accound SID the debug event belongs to.
* `string` **date\_created** (required). The date the debug event was created.
* `string` **level**. The log level of the debug event.
* `string` **master\_account\_sid**. The account SID of the parent account the debug event belongs to.
* `string` **request\_sid**. The request SID of the debug event.
* `string` **service\_sid**. The service SID of the debug event.
* `string` **correlation\_sid**. The correlation SID of the debug event.
* `string` **product\_name**. The Twilio product which created the debug event.
* `string` **error\_code**. The Twilio error code which is associated with the debug event.
* `string` **payload**. The payload of the debug event.

The full specification for version 1 is also available as a [JSON schema](https://events-schemas.twilio.com/ErrorLogs.Error/1).
