You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "AndrewBruno@Yahoo.com" <an...@yahoo.com> on 2001/07/18 15:26:57 UTC

logging java outputs to a file under windows 98

Hello All,

does anyone know how I could log a java application's text outputs to a file
under windows98 DOS when using the "javaw" command instead of "java" ?

The reason for doing is that we would like to log all the debug info that
TOMCAT spits out during startup, but I can only get the DOS window to
support a max of 50 lines buffer.

If there is an option in the "java" command to save all outputs to a file,
that would be great!

Thanks, Andrew

P.S. Yes, I know linux would solve this problem quite easily ;)


Re: logging java outputs to a file under windows 98

Posted by John Baker <jb...@teamenergy.com>.
I've tried all this, and my conclusion was that although I could get a dos 
window to 50 lines (by hacking at some file's properties in the Windows dir), 
developing on win98 is totally crap. You can't tail log files properly, and 
it's one huge pain. My advice is to develop under something more sensible, 
like Linux. 

Of course, what you are looking for is the catalina.log file in the logs 
directory. But don't expect to be able to read it without stopping and 
starting tomcat, or suchlike.

On Wednesday 18 July 2001 14:26 pm, you wrote:
> Hello All,
>
> does anyone know how I could log a java application's text outputs to a
> file under windows98 DOS when using the "javaw" command instead of "java" ?
>
> The reason for doing is that we would like to log all the debug info that
> TOMCAT spits out during startup, but I can only get the DOS window to
> support a max of 50 lines buffer.
>
> If there is an option in the "java" command to save all outputs to a file,
> that would be great!
>
> Thanks, Andrew
>
> P.S. Yes, I know linux would solve this problem quite easily ;)

-- 
John Baker, BSc CS.
Java developer, Linux lover.
I don't wanna rock, DJ.