tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilson, Chip" <Chip.Wil...@archongroup.com>
Subject RE: SwallowOutput with JavaService
Date Thu, 01 May 2003 21:29:28 GMT
We have many applications deployed in Tomcat, and need each application's messages to go to
a seperate log file.  We have tried specifying a log file for stdout in the JavaService registration
as you suggest, however this gives us a single file with all of our applications' messages
intermingled in the one file.

-----Original Message-----
From: Koes, Derrick [mailto:Derrick.Koes@smith-nephew.com]
Sent: Thursday, May 01, 2003 4:26 PM
To: 'Tomcat Users List'
Subject: RE: SwallowOutput with JavaService



When you build the service, can you specify the correct log file directly to
the -out switch?

"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log" -out <your log file here>



-----Original Message-----
From: Wilson, Chip [mailto:Chip.Wilson@archongroup.com] 
Sent: Thursday, May 01, 2003 5:17 PM
To: tomcat-user@jakarta.apache.org
Subject: SwallowOutput with JavaService

Hi all,

We have a number of apps deployed in a Tomcat 4.1.24 environment on Win2K.
They are deployed using XML context configuration files like this one: 


<Context path="/bts/Disposition" docBase="../bts/disposition.war"
        debug="0" crossContext="true" 
		swallowOutput="true">

    <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_Disposition_log." suffix=".txt"
          timestamp="false"/>

</Context>

When we run Tomcat from a command prompt, our messages to system.out are
correctly swallowed and sent to the log file specified.  However, when we
deploy Tomcat as a Windows NT service using JavaService (tomcat.exe), our
messages to System.out are no longer swallowed and sent to the log file.  We
have tried various configurations of JavaService, including with and without
a stdout file of it's own, various settings for current working directory,
etc.  Nothing seems to correct the problem.

Does anyone have any clue how to remedy this situation short of rewriting
all of our logging to not use system.out?  We really need to run Tomcat as a
service, and we really need our system.out messages to be captured.

Thanks in advance.

--Chip

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message