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

NDJSON logs #37

Open
juliangruber opened this issue Mar 7, 2023 · 0 comments
Open

NDJSON logs #37

juliangruber opened this issue Mar 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@juliangruber
Copy link
Member

We currently store logs in format

[$DATE] $LINE
  • simple to read for humans
  • can be handled with bash tools
  • is not too hard to parse in Node.js.

We could change it to NDJSON:

{"date":date, ...line}
  • structured data
  • simple to read if you use tools like pino-pretty
  • can still be handled with bash tools (albeit more)
  • is trivial to parse
@juliangruber juliangruber added the enhancement New feature or request label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant