Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

context.Logger().InfoF or Errorf does not have color #344

Closed
u007 opened this issue Mar 30, 2017 · 1 comment
Closed

context.Logger().InfoF or Errorf does not have color #344

u007 opened this issue Mar 30, 2017 · 1 comment

Comments

@u007
Copy link
Member

u007 commented Mar 30, 2017

Hi,

i realized all my logging does not have color on my mac terminal.
i can see color when it runs in green for this text:
=== Running: go build -v -i -o tmp/project-build (PID: 32828) ===

but all my context logger is in plain white text.
iam using black background terminal with white text

please advice

thank you

@markbates
Copy link
Member

That's expected. It's a result of using io.Multiwriter to capture error output during development when building the binaries. We need to both display the error and capture it so we can should the build error later on. Unfortunately io.Multiwriter strips out color information.

When running the final built binary, i.e. not using buffalo dev, colors should be rendered as expected.

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

No branches or pull requests

2 participants