logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Vavrušák (JIRA) <j...@apache.org>
Subject [jira] [Created] (LOG4J2-272) malfunction of coloring with escaped characters (newline, tab,...)
Date Sat, 01 Jun 2013 13:12:19 GMT
Martin Vavrušák created LOG4J2-272:

             Summary: malfunction of coloring with escaped characters (newline, tab,...)
                 Key: LOG4J2-272
                 URL: https://issues.apache.org/jira/browse/LOG4J2-272
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.0-beta6
            Reporter: Martin Vavrušák
            Priority: Minor

I have this XML configuration

<configuration status="WARN">
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n}{FATAL=bright
red, ERROR=red, WARN=yellow, INFO=blue, DEBUG=green, TRACE=bright blue}"/>
    <root level="TRACE">
      <appender-ref ref="Console"/>

with pom:

Coloring work fine until try to format text with newline or tab.

logger.warn("this is ok \n And all \n this have only\t\tblack colour \n and here is colour

only first part (up to first \n) of log is colored the res of log is in black.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message