java - Log4j2 on Tomcat on Windows produces warning "unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream" -
i have web app deployed on tomcat 8. dev env eclipse (luna) on windows 7 x64. finished integrating log4j2 in code. when start tomcat, see following warning:
warn unable instantiate org.fusesource.jansi.windowsansioutputstream
i did extensive googling not see question related problem. did see class supposed add coloring log file. not interested in feature.
the log4j config follows
<?xml version="1.0" encoding="utf-8"?> <configuration status="info"> <appenders> <console name="console" target="system_out"> <patternlayout pattern="%d{hh:mm:ss.sss} [%t] %-5level %logger{36} - %msg%n"/> </console> </appenders> <loggers> <root level="trace"> <appenderref ref="console"/> </root> </loggers> </configuration>
ok, after diggind log4j2 code, found hidden runtime parameter needs specified:
-dlog4j.skipjansi=true
Comments
Post a Comment