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

core: enable log level based logging #26

Open
scriptnull opened this issue Jun 9, 2023 · 0 comments
Open

core: enable log level based logging #26

scriptnull opened this issue Jun 9, 2023 · 0 comments
Labels

Comments

@scriptnull
Copy link
Member

Currently, we have three types of logs:

  • verbose
  • error
  • debug

All of them are getting printed now. We will need to introduce a env which could be used by waymond to determine which log types to print. The env name could be WAYMOND_LOG_LEVEL. Setting it to debug should print all three types. Setting it to verbose should print verbose and error logs. Setting it to error should log only the errors.

Related code is present in https://github.com/scriptnull/waymond/tree/main/internal/log

@scriptnull scriptnull added area/cli good first issue Good for newcomers labels Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant