|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.xml.BasicLogger_Helper
XML configuration helper for BasicLogger.
Constructor Summary | |
BasicLogger_Helper()
|
Method Summary | |
void |
configure(java.lang.Object o,
org.jdom.Element e)
Configure this logger 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 |
public BasicLogger_Helper()
Method Detail |
public void configure(java.lang.Object o, org.jdom.Element e) throws SyslogInitException
<Logger name="LoggerName" class="LoggerClassName" > <!-- Logger subclass directives --> <Policy class="LogPolicyClass" > <!-- Policy directives --> </Policy> <Format class="LogFormatClass" > <!-- Formatter directives --> </Format> </Logger> |
Attributes: | ||
name | value | required |
name | Symbolic name for the logger. | no |
class | Full class name of the logger to load. Must be a class that implements the com.protomatter.syslog.Syslogger interface. | yes |
If the logger is a subclass of this class (BasicLogger), then the optional <Policy> and <Format> elements are processed. If each is present, it is passed to the configure() method of the LogPolicy or SyslogTextFormatter object specified so they can configure themselves. It is assumed that each of those elements contains other configuration information that the individual policy or format class would understand.
configure
in interface XMLConfigHelper
SimpleSyslogTextFormatter_Helper.configure(Object,Element)
,
HTMLSyslogTextFormatter_Helper.configure(Object,Element)
,
SimpleLogPolicy_Helper.configure(Object,Element)
,
PerClassPolicy_Helper.configure(Object,Element)
public org.jdom.Element getConfiguration(java.lang.Object o, org.jdom.Element element)
XMLConfigHelper
getConfiguration
in interface XMLConfigHelper
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |