Why does IntelliJ IDEA 2016.3 add “NORMAL_OUTPUT” to each run-window output line?

Starting the Spring-Boot 1.4 unit test application with JUnit 4 (recording via SLF4J and Log4j 2.x), my output window starts:

SYSTEM_OUTPUT / Library / Java / JavaVirtualMachines / jdk1.8 / Contents / Home / bin / java -ea -Didea.launcher.port = 7534

and then each line after that ends with "NORMAL_OUTPUT", à la:

14: 48: 36.135 DEBUG [main] org.springframework.test.context.BootstrapUtils - launching CacheAwareContextLoaderDelegate from the class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] NORMAL_OUTPUT

It's just annoying, but it would be nice to get rid of it.

I am sure that 98% of this was not until 2016. (I am using the version of "Ultimate").

(BTW: tokens "NORMAL_OUTPUT" and "SYSTEM_OUTPUT" do not appear in the log file on disk, which tells me this is not due to log4j 2.x. jar-jf-jl-slf4j is on the way to write Spring log. Without version changes for any of them.)

+4
source share
1 answer

I suspect this may be related to the template template that has been customized.

I originally had this, and it put a new line and a space at the beginning of each line (due to% n% throwable), the IDE formatting probably couldn't understand the formatting instructions.

<PatternLayout pattern="%highlight{%d [%t] %notEmpty{[%marker] }%-5level: %msg%n%throwable}"/>

Then I changed it to this, and it was better:

<PatternLayout pattern="%highlight{%d [%t] %notEmpty{[%marker] }%-5level: %msg%notEmpty{%throwable}}%n"/>
0
source

Source: https://habr.com/ru/post/1662346/


All Articles