Skip to main content

Isaac Yonemoto

ityonemo

makes logging sane.

put this in your .iex.exs; and log lines will bump the console prompt down.
if function_exported?(Mix, :__info__, 1) and Mix.env() == :dev do
  # if statement guards you from running it in prod, which could result in loss of logs.
  Logger.configure_backend(:console, device: Process.group_leader())
end
10 upvotes

© 2021 Zest Creative, LLC