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

Some text is invisible with colored terminal output #55

Closed
johalun opened this issue Jul 8, 2020 · 5 comments
Closed

Some text is invisible with colored terminal output #55

johalun opened this issue Jul 8, 2020 · 5 comments

Comments

@johalun
Copy link

johalun commented Jul 8, 2020

Hi

First, thanks for this great logger!

I'm using Terminator terminal on Linux with solarized dark theme. Whenever I choose any of the colored output some of the text is invisible or close to the background color. Is there a way to provide my own color choices?

@emabee
Copy link
Owner

emabee commented Jul 8, 2020

Sure! You can provide your own formatting function. Copy the code of e.g. colored_detailed_format() and of style(), and change the colors in your copy of style.
And then specify your method in Logger::format().

@emabee
Copy link
Owner

emabee commented Jul 8, 2020

I will think about an option to modify the colors with a method on Logger.

@johalun
Copy link
Author

johalun commented Jul 9, 2020

Is there a way to get the palette of the terminal theme so that the colors will automatically match?

@emabee
Copy link
Owner

emabee commented Jul 20, 2020

With 0.15.8 you can now specify your own palette via environment. See the doc of function style fro more details.

@emabee emabee closed this as completed Jul 20, 2020
@johalun
Copy link
Author

johalun commented Jul 20, 2020

Thanks, will do!

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

No branches or pull requests

2 participants