elixir-lang / logger_backends

Logger Backends extracted for Elixir v1.15+
Apache License 2.0
53 stars 3 forks source link

Compatibility with earlier Elixir versions? #4

Open lanodan opened 1 year ago

lanodan commented 1 year ago

Hi,

It looks like Elixir 1.15 broke backend configuration for Pleroma (seems related to us supporting loading configuration from database). And as it's deprecated we should probably just move to :logger_backend anyway, but it's mix.exs advertises support only for Elixir 1.15+ while we'd want to keep support for previous Elixir versions (currently up to 1.12), is this intended?

josevalim commented 1 year ago

It may or may not work. Can you please try running the test suite on v1.12? If it works, maybe send a PR to add 1.12 to CI?

lanodan commented 1 year ago

Sadly it doesn't works as-is, tests do pass on Elixir 1.13 (didn't have 1.12 on hand) but it's missing Logger.Formatter.format_event/2 which doesn't seems to have an equivalent publicly exposed prior to Elixir 1.15.