|
|
|||||||||||||
| 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
|
+--com.protomatter.syslog.xml.UNIXSyslogLog_Helper
XML configuration helper for UNIXSyslogLog.
| Constructor Summary | |
UNIXSyslogLog_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 com.protomatter.syslog.xml.BasicLogger_Helper |
configure, getConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UNIXSyslogLog_Helper()
| Method Detail |
public void configure(java.lang.Object o,
org.jdom.Element e)
throws SyslogInitException
<Logger class="com.protomatter.syslog.UNIXSyslogLog" >
<!--
Note that the hostname attribute of the
<Syslog> tag must be specified.
Config params from
|
| Element | ||||||||||||||
| name | value | required | ||||||||||||
| logServer | The hostname or IP address of the log server that packets should be sent to. | yes | ||||||||||||
| port | The port number to send packets to on the log server. | no (default is 514) | ||||||||||||
| facility | The UNIX syslog facility ID that messages appear from. A list can be found here. | no (default is 16) | ||||||||||||
| tag | Text value of the packet "tag" -- the default is "ProtomatterSyslog" and is generally meant to be the application or "process" name. | no (default is "ProtomatterSyslog") | ||||||||||||
| showHostname | true or false -- decide if we should show the hostname before the "tag". The spec says that you should do this, but when I tested under Red Hat Linux 7.2, it just ended up repeating the data. Your mileage may vary. | no (default is false) | ||||||||||||
| messageTemplate |
The template for formatting the body of the message. The
following tokens are replaced in this string:
default is |
|||||||||||||
| SeverityMap | Contains a set of <MapEntry> elements, each containing a <syslog> and <unix> elements. Valid values for the <syslog> element are DEBUG, INFO, WARNING, ERROR and FATAL. You must specify map entries for all of the syslog severities. Each must map to a UNIX syslog severity, whose legal values are: DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL and EMERGENCY. | no (default is shown above) | ||||||||||||
configure in class BasicLogger_Helpercom.protomatter.syslog.xml.BasicLogger_HelperSimpleSyslogTextFormatter_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)
XMLConfigHelpergetConfiguration in class BasicLogger_Helper
|
Protomatter Software v1.1.8 Copyright 1998-2002 Nate Sammons |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
| Protomatter Software v1.1.8 | http://protomatter.sourceforge.net/1.1.8 |