# Configuration

## Configuration options

To configure `alpinejs-ray`, you must create an `alpineRayConfig` property on the `window` object before loading `alpinejs-ray`:

```
<script>
    window.alpineRayConfig = {
        logComponentsInit: true,
        logErrors: true,
        logEvents: ['abc'],
    };
</script>

<!-- load axios and alpinejs-ray -->
```

## Configuration reference

| Name                      | Type(s)              | Default | Description                                                        |
|---------------------------|----------------------|---------|--------------------------------------------------------------------|
| `logComponentsInit`      | `boolean`            | `false` | Send info on component initializations to Ray                      |
| `logErrors`              | `boolean`            | `false` | Send JavaScript errors to Ray instead of the console              |
| `logEvents`              | `boolean, array`     | `false` | Send specified custom events to Ray, or `false` to disable        |

## Debug without breaking your flow

Ray keeps all your debug output neatly organized in a dedicated desktop app.

Download Ray

macOS

[ARM](https://spatie.be/products/ray/v3/download/macos-arm64/latest) [Intel](https://spatie.be/products/ray/v3/download/macos-x64/latest)

Windows

[x86 (Intel)](https://spatie.be/products/ray/v3/download/windows/latest)

Linux

[AppImage](https://spatie.be/products/ray/v3/download/linux/latest)

By downloading Ray, you agree to our [terms of use](/content/terms-of-use/index.html).

The free trial lets you send up to 20 messages per session.
