<div dir="ltr"><div><div><div>Hi Joachim,<br><br></div>Unfortunately I could not find any configuration parameters for the logger level colors.<br></div><div>Would it be a meaningful enhancement from logback to provide such parameters within the xml configuration file?<br>

<br></div>For now, I was able to replace %highlight conversion with my own implementation (which was copied from the original one).<br><br></div>In logback. xml:<br><conversionRule conversionWord="highlight" <br>

                    converterClass="br.com.danielferber.....logback.HighlightingCompositeConverter" /><br><br>In HighlightingCompositeConverter.java:<br>public class HighlightingCompositeConverter extends ForegroundCompositeConverterBase<ILoggingEvent> {<br>

<br>    @Override<br>    protected String getForegroundColorCode(ILoggingEvent event) {<br>        Level level = event.getLevel();<br>        switch (level.toInt()) {<br>            case Level.ERROR_INT:<br>                return BOLD+RED_FG;<br>

            case Level.WARN_INT:<br>                return YELLOW_FG;<br>            case Level.INFO_INT:<br>                return CYAN_FG;<br>            default:<br>                return DEFAULT_FG;<br>        }<br>    }<br>

}<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-25 5:20 GMT-03:00 Joachim Durchholz <span dir="ltr"><<a href="mailto:jo@durchholz.org" target="_blank">jo@durchholz.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Am <a href="tel:25.06.2014%2000" value="+12506201400" target="_blank">25.06.2014 00</a>:06, schrieb Daniel Ferber:<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
It it possible to change the color set that highlights messages with Jansi?<br>
<br>
By default, info messages are print in dark blue, which is uncomfortable to<br>
read on windows prompt with black background. I think cyan would be more<br>
suitable.<br>
</blockquote>
<br></div>
I think it's a general problem. I've seen this effect on<br>
- Windows terminal sessions<br>
- PuTTY<br>
- Linux consoles<br>
<br>
I think the proper place to fix that would be Jansi. Or whatever software layer actually translates the "dark blue" intention into an RGB triple.<br>
<br>
Of course for now, using a different color should avoid the problem.<br>
______________________________<u></u>_________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/slf4j-user</a><br>
</blockquote></div><br></div>