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

Logging is not consistent with the rest of Astarte components #33

Closed
rbino opened this issue Aug 26, 2020 · 2 comments
Closed

Logging is not consistent with the rest of Astarte components #33

rbino opened this issue Aug 26, 2020 · 2 comments
Milestone

Comments

@rbino
Copy link
Contributor

rbino commented Aug 26, 2020

We should standardize VerneMQ logging to use logfmt format like all other Astarte services.

Moreover, right now the logger does not print a date, just a timestamp, so it's hard to understand when something was logged if a problem is being debugged some days later.

@Annopaolo
Copy link
Collaborator

At the moment, VerneMQ does not support custom log formatting, so no date for now.
There is a library for lager logfmt formatting, but it's outdated.

A possible workaround would be to forward Erlang Lager log messages (VerneMQ) to Elixir Logger (plugin). This approach presents two problems:

  1. Plugins' messages should be added to VerneMQ logs, and not the other way around (see this answer on the VerneMQ Slack);
  2. The only Lager backend to redirect messages to Logger is outdated, too (Elixir < 1.7.0).

@Annopaolo Annopaolo added this to the v1.2 milestone Jan 17, 2023
@bettio bettio modified the milestones: v1.2, v1.3 Jun 19, 2023
@Annopaolo
Copy link
Collaborator

Closed by #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants