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

support windows color via mattn/go-colorable #112

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shenwei356
Copy link

@shenwei356 shenwei356 commented Apr 26, 2017

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!

@shenwei356 shenwei356 changed the title support windows color via https://github.com/mattn/go-colorable support windows color via mattn/go-colorable Apr 26, 2017
@mageddo
Copy link

mageddo commented Aug 26, 2017

Ping @op

logger.go Outdated
} else {
b := SetBackend(NewLogBackend(os.Stderr, "", log.LstdFlags))
b.SetLevel(DEBUG, "")
}
Copy link

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@LeMoussel
Copy link

Very interesting. When author merge it?

@shenwei356
Copy link
Author

I wrote email to @op at April and he said he will look into this soon.

You can use my fork right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants