Hey everyone ,
In Elixir 1.15.x, I would like to disable default logger (default_handler
). When I add the config:
# config.exs
config :logger, :default_handler, false
It works as expected in dev mode (no log anymore), but still got logs when running test.
I certainly missed something but can’t figure out what
Any idea?
UPDATE:
Looks like it’s just when using capture_log/2
, the default formatter is used to config the capture server. So the default_handler is correctly deactivated