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

Console log is unreadable (white text on white background) if quarkus.log.console.format is set #33541

Open
ge0ffrey opened this issue May 23, 2023 · 6 comments
Labels
area/logging kind/bug Something isn't working

Comments

@ge0ffrey
Copy link
Contributor

ge0ffrey commented May 23, 2023

Describe the bug

When I set this in my application.properties:

quarkus.log.console.format=%d{HH:mm:ss.SSS} %5p [%t] %m%n

the log messages become invisible in a vanilla (non-darkula) IntelliJ, because they are written in a white font, even when the console background is white.

Expected behavior

Readable log messages

Actual behavior

Unreadable log messages

How to Reproduce?

Set quarkus.log.console.format and use a white background console.

Quarkus version or git rev

3.0.3.Final

Recommended fix

Set quarkus.log.console.darken=1 by default, especially if quarkus.log.console.format is set.

@ge0ffrey ge0ffrey added the kind/bug Something isn't working label May 23, 2023
@ge0ffrey
Copy link
Contributor Author

ge0ffrey commented Sep 6, 2023

Reproduces on Quarkus 3.2.4.Final too.

@cescoffier
Copy link
Member

Try with export QUARKUS_LOG_CONSOLE_DARKEN=1

@ge0ffrey
Copy link
Contributor Author

ge0ffrey commented Sep 7, 2023

That works for me.
How do I set QUARKUS_LOG_CONSOLE_DARKEN for all the random people who check out our quarkus examples?

@cescoffier
Copy link
Member

I should work from the application.properties: quarkus.log.console.darken=...

@ge0ffrey
Copy link
Contributor Author

ge0ffrey commented Sep 21, 2023

Some of us work with a white background console, others with a dark background console.
We use the same application.properties.

The quarkus.log.console.darken=1 value seems to work for everyone.

@ge0ffrey
Copy link
Contributor Author

ge0ffrey commented Sep 21, 2023

Thanks Clement. That works well!

Changed this issue to ask to set quarkus.log.console.darken=1 by default if quarkus.log.console.format is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants