Wrox Programmer Forums
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2005, 03:10 PM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat logging

I am running a Tomcat5.0.16/JDK1.5.0 application on NT and want to capture the initial output that is sent to the Dos window to a file. The output that i am talking about is the likes of:
INFO: Processing Context configuration...
INFO: Installing web application...

Any direction much appreciated.

Regards,

Bluespud.
 
Old February 25th, 2005, 05:42 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Normally at the DOS prompt

Command > FileName.Txt

Will send all the output to FileName.Txt, Check for more help on Log file.



Gokulan Ethiraj
 
Old February 25th, 2005, 06:04 AM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that. Where I was comming unstuck was that Catalina.bat was starting a new window and running the jvm in it. I modified Catalina to run the jvm in the same process, i.e. run java directly, and then I was able to pipe the output using the ">".

I was however, looking to see if I could use one of the configuratioin files, e.g. server.xml, to direct the output, using a logger, to a specified file without having to alter catalina.bat.

Regards,

Bluespud.





Similar Threads
Thread Thread Starter Forum Replies Last Post
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM
audit logging ted BOOK: Access 2003 VBA Programmer's Reference 0 August 23rd, 2005 09:06 AM
Redirecting and Logging off. rupen Classic ASP Basics 3 June 6th, 2005 07:19 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Is there any way of disabling logging? chrislepingwell SQL Server 2000 1 October 9th, 2003 11:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.