Hi everybody,
I pretty with JAVA/JSP and I have many doubts, one of them is that I
want to create a log file where I can see any output, error, warning
and so on.
I have typed in my JSP:
org.apache.tomcat.logging.Logger viaLogFile;
myLogFile.setPath("D:\\tomcat\\webapps\\pruebalogin\\logs\\myLogfile.log");
myLogFile.setVerbosityLevel("DEBUG");
myLogFile.open();
and I've got the error "variable may not have been initialized".
I know org.apache.tomcat.logging.Logger is an abstarct class so I
wolud have to implement subclass and implement a constuctor (and also
the method flush).
am I right ?
And If I do that what kind of object should my contructor returns ?
PLEASE HELP ME.
Thanx in advance
Jose Ig
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets