logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Randall" <javabr...@gmail.com>
Subject Re: Redirect system.out into FileAppender
Date Thu, 08 Jan 2009 19:20:19 GMT
Almost this exact same question was answered very recently and rather
brilliantly by Michael Erskine here:
http://www.nabble.com/I-need-to-make-logging-in-a-complete-application-td21174776.html.

Brett

On Fri, Jan 9, 2009 at 12:05 AM, <Thomas.TH.Hamacher@partner.bmw.ch> wrote:

> Hi,
>
> is it possible to redirect the normal system.out or system.err into a
> FileAppender defined through log4j.
>
> I have the problem that I´m using a 3rd-party application, that uses
> System.out.println() in it´s code and I´d like to combine this with my other
> log4j-configurations into one single file currently defined through a
> FileAppender. Any idea how to do that?
>
> Thanks
> Thomas
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message