waymond icon indicating copy to clipboard operation
waymond copied to clipboard

core: enable log level based logging

Open scriptnull opened this issue 2 years ago • 0 comments

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 avatar Jun 09 '23 12:06 scriptnull