Until someone tells you the proper way....try this in a Servlet or JSP:

  File outFile = new File("./System.out.txt");
  FileOutputStream fOut = new FileOutputStream(outFile);
  PrintStream sysOut = new PrintStream(fOut);
  //
  File errFile = new File("./System.err.txt");
  FileOutputStream fErr = new FileOutputStream(errFile);
  PrintStream sysErr = new PrintStream(fErr);
  //
  System.setOut(sysOut);
  System.setErr(sysErr);
  //
  System.out.println("System.out.println()");
  System.err.println("System.err.println()");

--
Miles Daffin
Java Developer, Netherlands.

Land: +31 (0)10 476 2412
Mobile: +31 (0)6 2959 1423
Permanent email: [EMAIL PROTECTED]

----- Original Message -----
From: "TH Lim" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Sunday, October 08, 2000 1:56 PM
Subject: how to capture stdout ?


> Hi!
>
> Is there a setting in Orion server where allows me to capture
System.out.println() and System.err.println() in a file? If so, how do set
it?
>
> thank you
>
> /lim/
>
>


Reply via email to