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
{code:xml}
<configuration status="WARN">
<appenders>
<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}"/>
</Console>
</appenders>
<loggers>
<root level="TRACE">
<appender-ref ref="Console"/>
</root>
</loggers>
</configuration>
{code}
with pom:
{code:xml}
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.0-beta6</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.0-beta6</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>1.11</version>
</dependency>
{code}
Coloring work fine until try to format text with newline or tab.
{code:java}
logger.warn("this is ok \n And all \n this have only\t\tblack colour \n and
here is colour again?");
{code}
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: [email protected]
For additional commands, e-mail: [email protected]