----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Nanu,

    Just use the setOut() & setErr() methods in the System class.

     ex:
        try
        {
            File file = new File( "c:\\temp\\stdout.txt" );
            PrintStream printStream = new PrintStream( new
ileOutputStream( file ) );

            System.setOut( printStream );
        }
        catch( IOException e )
        {
            e.printStackTrace();
        }

        System.out.println( "This should be in the file: " + filename );

Corey

----- Original Message -----
From: Nanu Ramamrutham <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 2:20 PM
Subject: STDOUT & STDERR ...


> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi:
>     I am using apahe1.3.12 with jserv1.1.2.  In my start script for
apache, I am
> redirecting stdout & stderr to a file.  I don't see System.out.println()
that I
> have in my servlet go to this file.
>
>     This works with apache_1.2.5 and jserv1.1.1.  Any ideas how I can get
to my
> System.outs ??
>
> Thanks
> - Nanu.
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to