-
Notifications
You must be signed in to change notification settings - Fork 272
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
support windows color via mattn/go-colorable #112
base: master
Are you sure you want to change the base?
Conversation
Ping @op |
logger.go
Outdated
} else { | ||
b := SetBackend(NewLogBackend(os.Stderr, "", log.LstdFlags)) | ||
b.SetLevel(DEBUG, "") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to separate with platforms. On UNIX, colorable.NewColorableStderr() return os.Stderr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Very interesting. When author merge it? |
I wrote email to @op at April and he said he will look into this soon. You can use my fork right now. |
Excited to say that go-logging supports windows color now!
Thanks the contribution of @mattn for https://github.com/mattn/go-colorable
A screenshot from shenwei356/brename#1)
Cheers!