-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add option to use additional colors #13
Conversation
@@ -62,17 +62,23 @@ | |||
private static final String ANSI_RESET = "\u001B[m"; | |||
private static final String ANSI_ERROR = "\u001B[31;1m"; // Bold Red | |||
private static final String ANSI_WARN = "\u001B[33;1m"; // Bold Yellow | |||
private static final String ANSI_INFO = "\u001B[32m"; // Blue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering that TCA is used by some Minecraft server modifications, then turning INFO level blue by default is not a great idea imho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First off, coloring below log level warn is disabled by default, you need to set a flag to enable it. Also, this is designed to mimic the log4j highlighter, so I have choosen the same colors as log4j
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm aware that one needs to set a flag to enable it.
Thanks for your PR! Originally this was just intended as a simple alternative to Log4j's more complex (but also powerful) In general Log4j's I think that might be a better solution than editing the
So, is there any way we can make this work with |
|
Closing in favor of #16. |
This allows to mimic log4j's HighlightConverter more accurate.
By default, it still only highlights errror and warning, info/debug coloring need to be enabled by changing the log4j xml to include a true parameter.
This is useful for forge, as it currently uses log4j's highlight converter (reasoning being the additional colors), which obviously ignored missing ansi support and therefor looks ugly on non-ansi consoles.