3 ms·
this is even better: if function_exported?(Mix, :__info__, 1) and Mix.env() == :dev do Logger.configure_backend(:console, device: Process.group_leade
by dnautics 5y ago
this is even better:
if function_exported?(Mix, :__info__, 1) and Mix.env() == :dev do
Logger.configure_backend(:console, device: Process.group_leader())
end
It makes logger work like IO; where if it spits it out it doesn't disrupt the prompt. Don't run it in prod, though.