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

No tty disabled colored output #7

Closed
rphillips opened this issue Mar 11, 2017 · 6 comments
Closed

No tty disabled colored output #7

rphillips opened this issue Mar 11, 2017 · 6 comments

Comments

@rphillips
Copy link

Love the library. I may implement the colorized output formatter with the colors disabled without a tty for a project of mine . Is this a feature you have considered or planned?

@x-cray
Copy link
Owner

x-cray commented Mar 13, 2017

@rphillips What do you mean by that? Currently, if no TTY is attached the formatter automatically switches to uncoloured output of the following format:

time="Mar 13 16:50:44" level=debug msg="Started observing beach" animal=walrus number=8
time="Mar 13 16:50:44" level=info msg="Temperature changes" temperature=-4

or you rather want to retain the original format but without colours?

@rphillips
Copy link
Author

I am thinking the original format but without colours.

@bastienbc
Copy link

This can be done if you implement the color theme I told you in an other issue.

Just make a color scheme "NoColor", and force tty.

Or am I missing something?

@x-cray
Copy link
Owner

x-cray commented Mar 14, 2017

@bastienbc I still think that these are two separate issues. I will add a switch here to disable logfmt output. And depending on TTY availability default output may be coloured or not. And separately there will be support of color schemes based on https://github.com/mgutz/ansi styling rules.

@rphillips
Copy link
Author

Thank you @x-cray !

@rphillips
Copy link
Author

Thank you!

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

No branches or pull requests

3 participants