I need some logging mechanism in my Java development. The dev setup is as follows (just to give you an idea) server CentOS 5.2 with java 1.6, PHP and mySQL on the one end, and Fedora 10, (openJDK?) on the dev side. Ok, so I have a website on the server that I "surf" to (entering the IP address - life CAN be simple) and call up an info page that is on the server...not. I get a blank page - applet (possibly) crashed on me...
Result: I need to log what the applet screams before it dies on me, enter log4j.
Just to test, this is what I "fumbled" up as test applet:
* @author t01dev
public class Ploop extends Applet
// declare some stuff here
Logger myLogger = Logger.getLogger("Ploop");
public void init()
public void paint(Graphics g)
g.drawString("Ploop rules!", 10, 10);
with this as HTML:
<APPLET CODE="Ploop.class" name="plooptest" WIDTH=400 HEIGHT=100>
the browser (firefox - of course) says "applet not initialised" in the status bar...
What? Where? Huh???
Please help, tnx