Check that console again
The messages should indeed appear in the same console within IntelliJ.
You may not have noticed for a couple of reasons: color, and order.
Colorized
Beware of coloring. Given that the err
in System.err
means “error”, IntelliJ colorizes such messages as red ink.
Vaadin generates much text in various colors. Your eye may be skipping over those colored blocks, looking for other colors (such as white ink on black background in in dark mode).
Click to zoom the screenshot below created by this code:
System.out.println( "BASIL sout - " + message );
System.err.println( "BASIL System.err message" );
Notice lines 3 & 5.
- Line 3 in red is from call to
System.err
.
- Line 5 in white is from call to
System.out
.
(Line 4 is from a call made to the Simple implementation of SLF4 logging framework, and is irrelevant here.)
Out-of-order appearance
You may not have noticed your messages for another reason: They may arrive in the console in a different order than you called in your Java code.
See again in that screenshot above. Those lines 3 & 5 arrived out-of-order: Our second call in Java appeared first in the console output (I don’t know why).