1

It's the first time that I am using Java. So I have configured Tomcat in Intelij and ran the debug mode. The server gets startet and it looks like everything works but I am very confused about these red messages, because they look like errors but they're not:

error

I would like to have only the error messages displayed in red. Is there a way I could either deactivate those messages or give them another color?

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
Ray
  • 125
  • 3
  • 12

1 Answers1

1

This output goes to the stderr stream. IntelliJ IDEA allows to configure different colors for stdout and stderr streams in File | Settings | Editor | Color Scheme | Console Colors, Console | Error output:

stderr

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • Thanks, that works and now the messages have another color but if I am not mistaking, now even the error messages have the same color. If so, that wasn't the goal, since the info messages that I receive are no errors. – Ray May 03 '19 at 21:58
  • @Ray Tomcat is using `java.util.logging.ConsoleHandler` in `conf/logging.properties` for the console output. As explained in [this answer](https://stackoverflow.com/a/34156206/104891), this logger prints to the `stderr` by design instead of `stdout`. – CrazyCoder May 03 '19 at 23:27