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

improvement log management #126

Closed
mattheusv opened this issue Oct 1, 2019 · 1 comment · Fixed by #186
Closed

improvement log management #126

mattheusv opened this issue Oct 1, 2019 · 1 comment · Fixed by #186
Assignees
Labels
DX DX improvements enhancement New feature or request

Comments

@mattheusv
Copy link

I'm suggest to add some package to management the log messages like logrus, and stop to make

if debug {
    fmt.Printf("[DEBUG].......")
}

and add something like this on startup

if verboseFlag {
   logrus.SetLevel(logrus.DebugLevel)
}

and use like this

logrus.Debugf("..........")
@fallion
Copy link
Member

fallion commented Oct 1, 2019

Thanks for the issue :) There's a similar one that I was planning to implement. #88

@fallion fallion self-assigned this Oct 6, 2019
@fallion fallion added DX DX improvements enhancement New feature or request labels Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX DX improvements enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants