View Source Ecto.DevLogger (ecto_dev_logger v0.1.0)

An alternative logger for Ecto queries.

It inlines bindings into the query, so it is easy to copy-paste logged SQL and run it in any IDE for debugging without manual transformation of common elixir terms to string representation (binary UUID, DateTime, Decimal, json, etc). Also, it highlights db time to make slow queries noticeable. Source table and inlined bindings are highlighted as well.

Link to this section Summary

Link to this section Functions

Specs

install(repo_module :: module()) :: :ok

Attaches telemetry_handler/4 to application.

Link to this function

telemetry_handler(event_name, measurements, metadata, config)

View Source

Specs

Telemetry handler which logs queries.