avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory DatagramTargetFactory.java
Date Tue, 18 Dec 2001 07:57:15 GMT
donaldp     01/12/17 23:57:15

  Modified:    src/java/org/apache/avalon/excalibur/logger/factory
                        DatagramTargetFactory.java
  Log:
  add some javadocs to factory describing its use.
  
  Submitted By: Ghorpade, Rajendra <RGhorpade@onebridge.de>
  
  Revision  Changes    Path
  1.2       +23 -0     jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory/DatagramTargetFactory.java
  
  Index: DatagramTargetFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory/DatagramTargetFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatagramTargetFactory.java	2001/12/14 21:35:29	1.1
  +++ DatagramTargetFactory.java	2001/12/18 07:57:14	1.2
  @@ -23,6 +23,29 @@
   import org.apache.log.format.SyslogFormatter;
   import org.apache.log.output.net.DatagramOutputTarget;
   
  +
  +
  +/**
  + * 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>
  + */
   public class DatagramTargetFactory
       extends AbstractTargetFactory
   {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message