Rommel Sharma, Question 1.)
Because I feel like being mischevious, I thought I'd respond to this. Try the following. The nice thing is that it will work with all webservers and even any application written in java, not just Tomcat. You can even do it from a jsp!!! ========================== FileOutputStream f = new FileOutputStream("/usr/julius/app-out.txt"); PrintStream ps = new PrintStream( f ); System.setOut( ps ); ========================== Question 2.) Again, this is probably not the right answer, but I'm happy to just copy the Tomcat shortcut into my "start-->programs-->startup" folder. yours, Julius This is my own opinion and not that of CUCBC. -----Original Message----- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Wed 1/15/2003 9:32 PM To: Tomcat MailGroup Cc: Subject: Logging System.out to a text file Hi! 1. How to log the System.out outputs to a text file instead of the console? Tried modifying the server.xml file's <Logger> element with attribute className="org.apache.catalina.logger.SystemOutLogger" but output is still on console. Also, specifying directory and file name in <Logger> with className="org.apache.catalina.logger.FileLogger" did not help Using Tomcat 4x, do not want to run it as a service in this case. 2. Second Question: How do I run Tomcat 4 as a service after it has been installed when I did not specify it to run as a service at the time of its installation. Thanks and regards, Rommel Sharma. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
<<winmail.dat>>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>