htmx.config.logAll
Logs all htmx events to console
The htmx.config.logAll option, when set to true, causes htmx to surface event-level output via console.log.
Default: false
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.
Example
htmx.config.logAll = true;
<meta name="htmx-config" content='{"logAll":true}'> Observability tools (Sentry, DataDog RUM, LogRocket, etc.) capture console.* automatically, so htmx logs flow into your existing pipeline without any extra setup.
Licensed under the Zero-Clause BSD License.
https://four.htmx.org/reference/config/htmx-config-logAll/