hi,
I simply use this:
FileOutputStream fdout = new FileOutputStream(path/to/log/file);
BufferedOutputStream bos = new BufferedOutputStream(fdout, 128);
PrintStream ps = new PrintStream(bos, true);
System.setOut(ps);
and the same err
System.setErr(ps);
hope it helps
michal
On Wednesday 25 August 2004 14:42, Ionel GARDAIS wrote:
>Hi there,
>
>Someone else askes this but I did not saw any
>response.
>
>Is it possible to seemlessly catch System.out and
>System.err and redirect to log4j ?
>
>thanks,
>ionel
>
>
>
>
>
>
>Vous manquez d�espace pour stocker vos mails ?
>Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
>Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
>
>Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s
> pour dialoguer instantan�ment avec vos amis. A t�l�charger gratuitement sur
> http://fr.messenger.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]