Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 63149 invoked from network); 18 Jun 2002 08:41:32 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Jun 2002 08:41:32 -0000 Received: (qmail 2202 invoked by uid 97); 18 Jun 2002 08:41:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 2156 invoked by uid 97); 18 Jun 2002 08:41:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2144 invoked by uid 98); 18 Jun 2002 08:41:29 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <00b701c216a2$b0a34bc0$46250cc4@client041> Reply-To: "Satya" From: "Satya" To: "Tomcat Users List" References: <001901c21614$2488d760$46250cc4@client041> <200206171549.g5HFnfg16792@bowtie.nl> Subject: Re: redirecting the output to a log file Date: Tue, 18 Jun 2002 14:02:31 +0530 Organization: CSGS MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Richards, I am already using file stream to write a log of my application specific info (and will move the application in next iteration to log4j). However i am having problem with capturing the error messages which catalina dumps if there is any error. They are appearing in the window in which catalina is running - since the scroll up immediatly, i could not read them, and they are not appearing in any of the log files under CATALINA_HOME\logs\ When i issued the bin\startup.bat >a.out or bin\startup.bat 2>a.err it only prints that "tomcat started" etc but not the error dump. Regards Satya ----- Original Message ----- From: Richard Plukker To: Tomcat Users List Sent: Monday, June 17, 2002 9:20 PM Subject: Re: redirecting the output to a log file > Hello Satya, > > I suggest Log4j. > You can log to different out streams. You can configure the way you log > outside you program code, using a log4j.properties file. > @see http://jakarta.apache.org/log4j > > Also you can use the catalina way of logging. > > And you can make your own logging mechanism by appending to a > java.io.RandomAccess file. But keep in mind that you have to programm a lot > to make it thread safe etc. > > Good luck. > > > Richard > > > On Monday 17 June 2002 17:32, you wrote: > > Hi All, > > > > I am using catalina. When my servlets are sending some stack trace / > > debug output, all such output is dumped in the catalina window. I tried > > changing the logger class in server.xml, used startup 2>output.txt etc but > > no technique is working, > > > > I am using standalone catalina on windows NT > > > > > > Please suggest > > > > Satya > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: