Syslog: White Paper FAQ Examples JavaDoc
Protomatter Classes v1.1.6

com.protomatter.syslog.xml
Class SimpleLogPolicy_Helper

java.lang.Object
  |
  +--com.protomatter.syslog.xml.SimpleLogPolicy_Helper
All Implemented Interfaces:
XMLConfigHelper
Direct Known Subclasses:
JDK14PerChannelPolicy_Helper, JDK14PerClassPolicy_Helper, PerChannelPolicy_Helper, PerClassPolicy_Helper

public class SimpleLogPolicy_Helper
extends java.lang.Object
implements XMLConfigHelper

XML configuration helper for SimpleLogPolicy.


Constructor Summary
SimpleLogPolicy_Helper()
           
 
Method Summary
 void configure(java.lang.Object what, org.jdom.Element e)
          Configure this policy given the XML element.
 org.jdom.Element getConfiguration(java.lang.Object o, org.jdom.Element element)
          Encode the given object's configuration into the given XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogPolicy_Helper

public SimpleLogPolicy_Helper()
Method Detail

configure

public void configure(java.lang.Object what,
                      org.jdom.Element e)
               throws SyslogInitException
Configure this policy given the XML element. The <Policy> element should look like this:



  <Policy class="PolicyClassName" >

    <logMask>LogMask</logMask>
    <channels>ChannelList</channels>

  </Policy>
  

This class reads the "logMask" and "channels" elements.

Element
name value required
logMask A log mask string. Integers are treated as raw masks and log level names (DEBUG, INFO, WARNING, ERROR and FATAL) are interpreted as at-or-above the given level. no (default is INHERIT_MASK)
channels A comma and/or space separated list of channel names. The constants DEFAULT_CHANNEL and ALL_CHANNEL are interpreted as their symbolic values. no (default is ALL_CHANNEL)

Specified by:
configure in interface XMLConfigHelper

getConfiguration

public org.jdom.Element getConfiguration(java.lang.Object o,
                                         org.jdom.Element element)
Description copied from interface: XMLConfigHelper
Encode the given object's configuration into the given XML element.
Specified by:
getConfiguration in interface XMLConfigHelper

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6