tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Wingfield" <jon.wingfi...@mkodo.com>
Subject RE: How to redirect the log file from the command window to a file?
Date Thu, 02 May 2002 11:01:01 GMT
1) alter the catalina.bat file:

... extract ...
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
%DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_H
OME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
%ACTION% > %ACTION%-server.log
... extract end ...

this puts all the system.out into a file start-server.log in the tomcat bin
directory.

2) use the jakarta log4j logging package with a ConsoleAppender ;)

Hope this helps,

Jon

-----Original Message-----
From: Louis Voo [mailto:louis@allsofts.com]
Sent: 02 May 2002 08:17
To: Tomcat Users List
Subject: How to redirect the log file from the command window to a file?


Hi,

    I'm using tomcat 4.04b2 for window.  After I start my tomcat, all the
system.out log will print out in that command window, can I redirect it to a
file?  Please tell me  how to do that.


Thank you

Louis



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message