Angus Comber wrote:Ah ok I have seen that. So System.out.println() goes there?
That's right.
B Alin
Greenhorn
Joined: Jan 17, 2012
Posts: 4
posted
0
You can use a logging library such as log4j from the apache software foundation.
If you decide to use this, a good idea is to get chainsaw also. The idea is to display the logging messages from log4j in a user-friendly interface as chainsaw.
More pointers :
- for each class use it's own logging object :
class MyClass {
static final private Logger logger = Logger.getInstance(MyClass.class);
[ ... code ... ]
}
- how to configure logger in the "log4j.properties" file for your project :
It would be very unusual to go to the trouble of setting up log4j in an applet; I wouldn't recommend it.
B Alin
Greenhorn
Joined: Jan 17, 2012
Posts: 4
posted
0
very unusual ?
funny thing, my co-workers agree it's unusual and at the same time expect me to trace bugs using messages to System.out and/or running the applet step-by-step in debug mode (NetBeans or your choice of an IDE).