Log in

View Full Version : Debug output in Java?


JimiK
21st April 2003, 11:27
As you might know, there is this tool from "sysinternals" where you can capture debug output, called "debugview". XviD for example is a project that outputs debuginfo. Now I'm wondering if there is a way to let Java output debuginfo. Up till now I'm always using stdout and have to comment out the output afterwards.
Best regards,
JimiK

leo_fischer
22nd April 2003, 04:45
You can write to System.err instead of System.out if you want. A better solution for logging/debugging is to use log4j http://jakarta.apache.org/log4j/ or the java logging api from jdk1.4+ which allows very configurable logging information.