Hi Jon
        Thanks for your tip, but I still got problem, the start-server.log
file is created, but no content in it, there are many print out from the
command window, but the file is still empty.  Somewhere goes wrong?


Louis
----- Original Message -----
From: "Jon Wingfield" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 12:01 PM
Subject: RE: How to redirect the log file from the command window to a file?


> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to