lager icon indicating copy to clipboard operation
lager copied to clipboard

Translate all logger events to Lager events

Open hauleth opened this issue 4 years ago • 3 comments

This is similar approach that Elixir's logger take some time ago, where Lager messages still will be handled by the Lager only, but it will also get messages from the logger module. This should easy the migration like mentioned in #519 where all messages are passed through logger from day 1. This would also resolve #492 as Lager would replace default handler for all messages, not just error_logger.

Later this could be improved in similar way to elixir-lang/elixir#9333

hauleth avatar Nov 05 '19 10:11 hauleth

I think @Vagabond is planning along these lines for the future 4.x version of lager. Thanks for the issue though.

jadeallenx avatar Nov 05 '19 22:11 jadeallenx

Yes, I have seen their work. My point is to reduce scope for a moment, and do not rewrite all log commands as well, but for now just provide logging facilities for logger (and soon Elixir's Logger) users.

hauleth avatar Nov 08 '19 09:11 hauleth

My point is to reduce scope for a moment, and do not rewrite all log commands as well, [...]

In case more elegant alternatives don't come up within a short time frame, fake-lager might be useful to you, but it's still rather experimental.

g-andrade avatar Nov 30 '19 22:11 g-andrade