Shapira is right. Other way is to implement your own
appender to do the job. Then register this appender
with the corresponding logger.

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Hi,
> Perhaps you could configure log4j to use different /
> additional
> appenders to help your task.  The console is
> annoying.
> 
> A file appender would write to a file, and you could
> then stream the
> contents of the file over RMI in whatever chunks
> fits your system.
> 
> A socket appender could write directly to the
> network port you want.  A
> JMS appender would send stuff to a JMS queue, and
> the process on the
> other side could read it...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-----Original Message-----
> >From: Dirk Hopmann [mailto:hopmann@;c-lab.de]
> >Sent: Friday, November 08, 2002 10:16 AM
> >To: Log4J Users List
> >Subject: Re: log4j messages to String conversion?
> >
> >Hi,
> >
> >I just want to send the completely formatted string
> (like: '0 [main]
> >com.foo.bar - this is the message') via an RMI
> connection, that is
> already
> >implemented and must be used...
> >
> >My problem is, that the output string is only send
> to the console and I
> am
> >not able to convert it to a String, to use it in my
> program.
> >
> >Regards,
> >Dirk Hopmann
> >
> >
> >
> >----- Original Message -----
> >From: "Ricardo Moral" <[EMAIL PROTECTED]>
> >To: "Log4J Users List"
> <[EMAIL PROTECTED]>
> >Sent: Friday, November 08, 2002 3:56 PM
> >Subject: Re: log4j messages to String conversion?
> >
> >
> >> What do u need? The formatted event message? What
> do u
> >> need this for?
> >>
> >>
> >> --- Dirk <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > my question is, whether it is possible to get
> the
> >> > output string of a
> >> > method-call like this: 
> logger.debug("message").
> >> > I would like to send that String (which is
> perfectly
> >> > outputted on my
> >> > console) over an RMI connection.
> >> >
> >> >
> >> > Thanx a lot,
> >> > Dirk Hopmann
> >> >
> >> >
> >> > --
> >> > To unsubscribe, e-mail:
> >> >
> <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
> >> > For additional commands, e-mail:
> >> > <mailto:log4j-user-help@;jakarta.apache.org>
> >> >
> >>
> >>
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> ><mailto:log4j-user-unsubscribe@;jakarta.apache.org>
> >> For additional commands, e-mail:
> ><mailto:log4j-user-help@;jakarta.apache.org>
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> 
> > This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> > --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:log4j-user-help@;jakarta.apache.org>


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>

Reply via email to