Hacker Timesnew | past | comments | ask | show | jobs | submitlogin
Elixir 1.18's new "auto_reload" option in IEx (arrowsmithlabs.com)
5 points by arrowsmith on Dec 23, 2024 | hide | past | favorite | 1 comment


I like that you included instructions on disabling and enabling auto_reload manually from within IEx.

    IEx.configure(auto_reload: true)
Sometimes, it is helpful to override your .iex.exs settings for a moment, and it is nice that you showed readers how to do that with :auto_reload.

Here are some examples of other settings you can manually override from within IEx:

    Logger.configure(level: :debug)
    Logger.configure(level: :error)
    Logger.configure(level: :info)
    Logger.configure(level: :none)
    Logger.configure(level: :warn)

    Logger.add_backend(:console)
    Logger.remove_backend(:console)
The difference between Logger.configure(level: :none) and Logger.remove_backend(:console) is that all log messages are filtered out with the first option, but the logging system remains active, whereas the second option completely removes the console backend from the logging system. Both are helpful when debugging an issue on a busy system with lots of output flying by in IEx.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: