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.
Specs
telemetry_handler( :telemetry.event_name(), :telemetry.event_measurements(), :telemetry.event_metadata(), :telemetry.handler_config() ) :: :ok
Telemetry handler which logs queries.