Re: how to capture stdout ?
Until someone tells you the proper waytry 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/ > >
RE: how to capture stdout ?
Sure, Just start with java -jar orion.jar -out stdout.log -err stderr.log Mike PS There are other options you might not be aware of, but these are the most useful IMHO - try java -jar orion.jar -? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of TH Lim > Sent: Sunday, October 08, 2000 9:57 PM > To: Orion-Interest > 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/ > > >
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/