Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Lager with OTP logger #20

Merged
merged 9 commits into from
Mar 8, 2021
Merged

Conversation

michaelklishin
Copy link
Collaborator

Now that we can require OTP 22 and strive to support OTP 24, Lager is both no longer necessary and makes it harder to work on OTP 24 compatibility.

Closes #19.

Cuttlefish is already functional at this point.
Tests use a custom lager backend and need updating.
It's not entirely identical to the previous one because default
time formatting is different from Lager but we'll assume it's
acceptable for Cuttlefish.

Compare, with Lager:

15:12:26.054 [info] No app.config or vm.args detected in /etc, activating cuttlefish

to the OTP logger version on OTP 24:

2021-03-08T15:14:55.963768+03:00 [info] No app.config or vm.args detected in /etc, activating cuttlefish
src/cuttlefish.app.src Show resolved Hide resolved
src/cuttlefish.erl Outdated Show resolved Hide resolved
per suggestion from @dumbbell
@michaelklishin michaelklishin marked this pull request as ready for review March 8, 2021 13:02
@michaelklishin michaelklishin requested a review from dumbbell March 8, 2021 13:02
@michaelklishin
Copy link
Collaborator Author

Tested against a RabbitMQ branch that uses logger on OTP 24, works as expected.

@michaelklishin michaelklishin merged commit 08c28fa into master Mar 8, 2021
@michaelklishin michaelklishin deleted the mk-switch-to-otp-logger branch March 8, 2021 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to built-in Erlang logger
2 participants