Hi Everybody:
I am writing a java server project and got to the point where the program stops and hangs there with no error it just does nothing. I decided to go ahead and learn how to use log4j, to be able to see what's going on and for my future projects. However through all the documentaion I have came accros, I found no single usefull example for a beginner. One of the sockets in my program is stuck there not sending and not recieving, and I am trying to find out what's wrong without modifying the code for my project. If I have to go and modify the code, adding something similar to print statements like logger.debug and logger.info as teh examples show, then log4j is the most useless thing I came across. I am not expecting in any way to do somehting like this. Here's a piece of code that I was able to add to my main method, but again nothign useful came out.

static Logger lgr1 = Logger.getLogger("Joint");
BasicConfigurator.configure();
lgr1.setLevel(Level.DEBUG);
lgr1.info("This is from logger lgr1");
lgr1.debug("This is from logger lgr1");

Please not that, It's urgent and I can not at this point use any of the extra classes or layers. All I need is the basic information about th erunning program. Any advice ??


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to