Hi Karl,

We prefer to use Java Logging [1] instead of System.out.println.

The advantages are:

- You don't depend on 3rd party libraries (this is included in the JDK).
- You can log messages with a priority (a Level) so you can tune what users finally see. So you don't have to forget to remove "System.out.println" in your code.

Once you have these logs calls in place in your code you can use the "View/IDE Log" in NetBeans to see the messages. No need to look outside the IDE.

Hope this helps,
Antonio


[1]


On 20/01/2022 10:26, Karl Tauber wrote:
Hi,

while working on improvements/fixes for FlatLaf support in NetBeans, I'd like to temporary add some System.out.println() to NetBeans core modules and see its output in the NetBeans Output view. But it does not show up.

The printlns are compiled. I've checked it with the debugger.

-J-Dnetbeans.logger.console=true did not help.

The last lines in the Output view are:
debug:
nbbuild.tryme-debug:
Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this may take a moment...
nbbuild.tryme-setup-debug-args:
nbbuild.tryme:



I'm using NetBeans 12.6 with Java 11

Any ideas?

Thanks,
Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to