1

I have a multi module maven spring boot java 11 application that runs okay and its logs are all the correct colors.

I created a new module that will run as a separate application, and is part of the multi module application.

But when I run this separate application its logs are all in red color like so:

All logs are red for console

I have tried deleting the module, invalidating caches, recreating it, but the problem persists.

Is there any way to fix this or is this a side effect from the weird setup I have going on?

I am running the project on IntellJ Ultimate.

D.Tomov
  • 1,018
  • 2
  • 15
  • 36

1 Answers1

3

Java logger implementation shipped with JRE (java.util.logging) is logging to System.err by default (instead of System.out). Its red, because it is an error stream.

Antoniossss
  • 31,590
  • 6
  • 57
  • 99
  • How can I configure it to log to System.out? I am using Lombok with @Log annotation. – D.Tomov Aug 16 '21 at 07:10
  • 1
    Here is one example. https://stackoverflow.com/a/56954749/1527544 but it would be better to use something different for logging. My personal choice is a logback. http://logback.qos.ch/ – Antoniossss Aug 16 '21 at 07:16