Thanks Jaikiran Pai for your valuable comments .
In the Interface ServletContext I have seen one method named
log
public void log(java.lang.String message,
java.lang.Throwable throwable)
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file. The name and type of the servlet log file is specific to the servlet container, usually an event log.
Parameters:
message - a String that describes the error or exception
throwable - the Throwable error or exception
My question is, which one is better to implement here ?
the log4J or the above mentioned log method or the java.util.Logger ?
regards,
S