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

Implement log level #58

Open
estahn opened this issue Feb 24, 2019 · 1 comment
Open

Implement log level #58

estahn opened this issue Feb 24, 2019 · 1 comment
Milestone

Comments

@estahn
Copy link
Collaborator

estahn commented Feb 24, 2019

There are no log files within a container environment and everything is directed to either stdin or stdout. This can be achieved via --verbose.

The --verbose flag generates too many irrelevant logs specifically problematic if an external log provider (e.g. Sumologic, loggly) is used. This leads to increased cost for no apparent reason.

A log level should be implemented to reduce the logs to a minimum, e.g. debug, info, warning, error, etc.

Message processing details such as p.log.Info("Processing message...") should be moved to debug level.

@corvus-ch corvus-ch added this to the Version 3 milestone Apr 22, 2019
@corvus-ch
Copy link
Owner

I have started working on a new major version. For this new version, I have planned to refactor logging completely. This includes:

  • Leveled logging allowing the user to see more or less details as preferred.
  • Fielded logging allowing the get additional details besides the message itself.
  • Structured output (logfmt, json) allowing for easy post processing of the logs (helpful with ELK/EFK/Splunk)

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

No branches or pull requests

2 participants