Use OTP logger as a file backend?


I’ve seen that in the new OTP logger you can configure file logging, without using external dependencies. :+1:t3:

You know if it’s possible to replace logger_file_backend by configuring these new OTP logger handlers as Elixir Logger backends?


1 Like

Currently AFAIK there is no such possibility because Elixir Logger just attaches itself as one of the backends to the logger. I am thinking about rewriting it to be thin wrapper over logger that will allow Elixir backends to be attached as sub-backends to the OTP logger, but even if I do it, it will probably not land in mainline before 1.10 as I believe this will be the first version OTP 21+.