dipak_kr_ghosh
asked on
JavaWebServer Log
I am using JavaWebServer2.0 for deploying my servlets. For testing the code I have put System.out.println() and System.err.println() but the messages are not coming in the log files in the sub-directories of the logs folder of JavaWebServer2.0. Can anyone tell me as to where I should look for the messages or what should be the strategy for debugging.
regards.
regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi rainmal
I tried out your first suggestion, but it did not work. Any way now I am writing all the necessary output to my own file than depending on the server for that.
I tried out your first suggestion, but it did not work. Any way now I am writing all the necessary output to my own file than depending on the server for that.
well make sure you are looking for the log in your server event log .
For thr java web server , it logs in the event log which you read thru the server admin util...I'm pretty sure of that cause I've personally used it.
For thr java web server , it logs in the event log which you read thru the server admin util...I'm pretty sure of that cause I've personally used it.
just call log() with your message.
For example
log("error");
This will log the message into the event log of the web server
you should generally override this function though.