----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Christine,

http://developer.java.sun.com/developer/TechTips/1999/tt1021.html#tip2

Have a look at this article from JDC. After calling
SaveOutput.start("/tmp/myfile") all calls to System.out.println() will be
logged to your file.

Aidan Doyle

-----Original Message-----
From: Christine Giovanacci [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2000 11:06
To: Java Apache Users
Subject: Writing to a file or System.out


----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Hello,
I'm using Jserv 1.1-2 (installed from ApacheJServ-1.1-2_RH6x.i386.rpm). It
runs under Linux RedHat 6.1.
I can figure out how to :
1. Find where System.out.println goes. I've used the following code found in
the faq's and it doesn't work.
    if(System.err != System.out)
       System.setOut(System.err); // as specified in faq's
    System.out.println("CAN YOU SEE ME");
    System.out.flush(); //
2. Write in a file (probably it's the same kind of problem!). I use :
   outStream = new FileOutputStream(fileName);
   outPS = new PrintStream (outStream);
   outPS.println ("bla bla bla") ;
   outPS.flush() ;

Can anyone help me?
Note that my code works when used with another web server or with
apache+tomcat under Windows98.


Christine Giovanacci
VP of Engineering
Indiqu.com
16 rue de Marignan
75008 Paris
[EMAIL PROTECTED]
Tel : (33 1) 58 56 37 72



--
--------------------------------------------------------------
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