Title: RE: LogKit : Factory for DatagramOutputTarget

Hi Peter,

here  are the javadocs

/**
 * DatagramTargetFactory
 *
 * This factory creates LogTargets with a wrapped DatagramOutputTarget around it:
 *
 * <pre>
 *
 *
 * &lt;datagram-target id="target-id"&gt;
 *   &lt;address hostname="hostname" port="4455" /&gt;
 *     &lt;format type="extended"&gt;
 *                %7.7{priority} %23.23{time:yyyy-MM-dd HH:mm:ss:SSS}   [%25.25{category}] : %{message}\n%{throwable}
 *     &lt;/format&gt;
 * &lt;/datagram-target&gt;
 * </pre>
 *
 * <p>
 *  This factory creates a DatagramOutputTarget object which will
 *  sends datagrams to the specified address. The name of the target is specified by the hostname attribute
 *  of the &lt;address&gt; element and the port by the port attribute.The &lt;address&gt; element
 *  wraps the format to output the log.
 * </p>
 *
 *
 */

And about the remote logging I want to use sockets. Is there any present alternative to RMI logging.
I do not want to RMI in my project due the performance and other issues.

cheers
Raj

-----Original Message-----
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 10:46 PM
To: Avalon Developers List
Subject: Re: LogKit : Factory for DatagramOutputTarget


On Fri, 14 Dec 2001 01:04, Ghorpade, Rajendra wrote:
> Hi Peter,
> I want to contribute it.There is no doubt in that.
>
> I have attached the class to this mail.

I committed it with a few modifications to get it to compile cleanly. Could
you send some javadoc for the top of the class that descibes format of XML
(see the other factorys for an example).

> So this way client components can use this remote logging. And the
> categories can be configured on the server side.
>
> You can suggest me a better way to do this.

Well what you probably want to do is create a RMI LogTarget. This will allow
you to create a LogTarget that receives the full LogEvent object but exists
on a remote machine. Then on the machine that is generating the Log events
you place the RMI LogTarget at the root of the the Hierarchy and it will
receive all LogEvents and send them across the remote connection.

Then

--
Cheers,

Pete

"The perfect way is only difficult for those who pick and choose.  Do not
like, do not dislike; all will then be clear.  Make a hairbreadth
difference and heaven and earth are set apart; if you want the truth to
stand clear before you, never be for or against." - Bruce Lee

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

----------------------------------------- (on the network)

*********************************
PRIVILEGED - PRIVATE AND CONFIDENTIAL
This e-mail and files transmitted with it are intended solely for the
use of the addressee(s) and may contain information which is
confidential or privileged. If you are not the intended recipient, be
aware that any disclosure, copying, distribution or use of this e-mail
or any attachment is prohibited. If you receive this e-mail and you are
not the addressee, or you have received this e-mail in error, please
disregard the contents of the e-mail, delete the e-mail and notify the
author immediately.
*********************************


---------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to