| 1 | --- |
| 2 | title: "htmx.config.logAll" |
| 3 | description: "Log all htmx events to console" |
| 4 | --- |
| 5 | |
| 6 | The `htmx.config.logAll` option, when set to `true`, causes htmx to surface event-level output via `console.log`. |
| 7 | |
| 8 | **Default:** `false` |
| 9 | |
| 10 | Errors and warnings always flow to `console.error` / `console.warn` regardless of this flag. `logAll` controls only the chatty event-by-event output that's useful when debugging behavior. Most of the time you don't need it. |
| 11 | |
| 12 | ## Example |
| 13 | |
| 14 | ```javascript |
| 15 | htmx.config.logAll = true; |
| 16 | ``` |
| 17 | |
| 18 | ```html |
| 19 | <meta name="htmx-config" content='{"logAll":true}'> |
| 20 | ``` |
| 21 | |
| 22 | Observability tools (Sentry, DataDog RUM, LogRocket, etc.) capture `console.*` automatically, so htmx logs flow into your existing pipeline without any extra setup. |