Hi,
I’m working on console application written in elixir.
I would like to make it “live editable”, so I run it with mix run --no-halt.
It has shortcut to trigger recompilation with IEx.Helpers.recompile().
The issue I have is that many parts of elixir write to stdout when you trigger recompilation.
So far, it has two type of messages:
1) success / failure messages, handled by
Mix.shell.info/1, Mix.shell.error/12) compilation warning messages, handled by :elixir_errors module.
Mix.shell allows you to define custom behaviour for its actions with Mix.shell(Custom.MixShell).
To do the same thing with :elixir_errors Erlang’s module, you have to re-define it from scratch.
Is it possible to have custom backend for :elixir_errors module?
The issue I’m trying to resolve is my application has many virtual windows and I want to show all warnings / errors in separate windows, i.e. redirect output from stdout to some file as an example.
Thank you.