Customize Ecto Logger output

Hey is there a way to customize the format Ecto that is using for its logging output?

SELECT u0."id" FROM "users" AS u0 WHERE (u0."id" = $1) [<<35, 162, 73, 152, 5, 51, 79, 36, 137, 62, 6, 161, 206, 44, 187, 8>>]

is much more harder to read and copy & paste than

SELECT u0."id" FROM "users" AS u0 WHERE (u0."id" = '23a24998-0533-4f24-893e-06a1ce2cbb08')
2 Likes

Look at the :loggers option here and Ecto.LogEntry.