Mas ainda assim eh poss�vel redirecionar a sa�da..(sei que o correto eh usar
api�s de logs!!, mas que dah, dah)
Soh n�o tentei ainda algo como jogar ela para "null"...

Veja este trecho do Thinking in Java do Bruce Eckel
(dispon�vel p/ download na web em http://www.mindview.net/ ou + direto:
http://64.78.49.204/TIJ-3rd-edition4.0.zip :)

Redirecting standard I/O

The Java System class allows you to redirect the standard input, output, and
error I/O streams using simple static method calls:

setIn(InputStream)
setOut(PrintStream)
setErr(PrintStream)

Redirecting output is especially useful if you suddenly start creating a
large amount of output on your screen and it's scrolling past faster than
you can read it. Redirecting input is valuable for a command-line program in
which you want to test a particular user-input sequence repeatedly. Here's a
simple example that shows the use of these methods:

//: c11:Redirecting.java
// Demonstrates standard I/O redirection.
import java.io.*;

public class Redirecting {
  // Throw exceptions to console:
  public static void main(String[] args)
  throws IOException {
    BufferedInputStream in =
      new BufferedInputStream(
        new FileInputStream(
          "Redirecting.java"));
    PrintStream out =
      new PrintStream(
        new BufferedOutputStream(
          new FileOutputStream("test.out")));
    System.setIn(in);
    System.setOut(out);
    System.setErr(out);

    BufferedReader br =
      new BufferedReader(
        new InputStreamReader(System.in));
    String s;
    while((s = br.readLine()) != null)
      System.out.println(s);
    out.close(); // Remember this!
  }
} ///:~

This program attaches standard input to a file, and redirects standard
output and standard error to another file.
I/O redirection manipulates streams of bytes, not streams of characters,
thus InputStreams and OutputStreams are used rather than Readers and
Writers.

[]'s
Caetano

----- Original Message -----
From: "Daniel Carneiro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 8:08 PM
Subject: Re: [enterprise-list] println


> N�o conheco nenhuma opcao de compilacao, mas vc poderia usa uma API de log
> no lugar do System.out.println no seu aplicativo (Log4j, jakarta-loggin,
API
> do j2se 1.4., etc). Nelas vc pode definir o n�vel de log que vc deseja.
Por
> exemplo, definir mensagem que s�o somente usada para depura��o, exibir
> conteudo de variaveis, etc como n�vel de DEBUG. Enquanto estiver depurando
o
> seu programa vc configura ele como n�vel de DEBUG e todas as msg s�o
> mostrada. No ambiente de produ��o vc usa um n�vel maior  (WARN, ERROR,
> CRITICAL) e essas mensagens ent�o n�o s�o exibidas (ou gravadas no log).
>
> []'s
> Daniel Carneiro
>
> ----- Original Message -----
> From: "Gabriel Pinto" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 2:14 PM
> Subject: [enterprise-list] println
>
>
> >
> > Pessoal,
> >
> > Existe alguma opcao de compilacao que remova os System.out.println na
hora
> > da compilacao? Para que assim o log do servidor de aplicacao fique mais
> > limpo?
> >
> > Obrigado
> >
> > Gabriel
> >
> >
> > --
> >
> > Gabriel Esteves Marques Pinto
> > ------------------------
> >    Diretor de TI
> > [EMAIL PROTECTED]
> >   www.brainweb.com.br
> > (19)3287-7060  Ramal:253
> >  N�cleo SOFTEX-Campinas
> > ------------------------
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > Para cancelar a subscri��o, envie mensagem para:
> [EMAIL PROTECTED]
> > Para comandos adicionais, envie mensagem para:
> [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> Para cancelar a subscri��o, envie mensagem para:
[EMAIL PROTECTED]
> Para comandos adicionais, envie mensagem para:
[EMAIL PROTECTED]


---------------------------------------------------------------------
Para cancelar a subscri��o, envie mensagem para: 
[EMAIL PROTECTED]
Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]

Responder a