Skip to content

core: enable log level based logging #26

Open
@scriptnull

Description

@scriptnull

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions