|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton org.productivity.java.syslog4j.impl.log4j.Syslog4jAppenderSkeleton org.productivity.java.syslog4j.impl.log4j.Syslog4jAppender
public class Syslog4jAppender
Syslog4jAppender provides a Log4j Appender wrapper for Syslog4j.
Note: Syslog4jAppender does NOT extend Log4j's SyslogAppender.
Example log4j.xml configuration:
<appender name="Syslog4j" class="org.productivity.java.syslog4j.impl.log4j.Syslog4jAppender">
<param name="Facility" value="user"/>
<param name="Protocol" value="tcp"/>
<param name="Host" value="192.168.0.1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m"/>
</layout>
</appender>
All available parameters are:
Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.
Field Summary |
---|
Fields inherited from class org.productivity.java.syslog4j.impl.log4j.Syslog4jAppenderSkeleton |
---|
charSet, facility, host, ident, initialized, localName, maxMessageLength, maxShutdownWait, port, protocol, splitMessageBeginText, splitMessageEndText, syslog, threaded, threadLoopInterval, truncateMessage, useStructuredData, writeRetries |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
Syslog4jAppender()
|
Method Summary | |
---|---|
boolean |
getHeader()
|
java.lang.String |
getSyslogHost()
|
java.lang.String |
initialize()
|
void |
setHeader(boolean header)
|
void |
setSyslogHost(java.lang.String host)
|
Methods inherited from class org.productivity.java.syslog4j.impl.log4j.Syslog4jAppenderSkeleton |
---|
_initialize, append, close, getCharSet, getFacility, getHost, getIdent, getLocalName, getMaxMessageLength, getMaxShutdownWait, getPort, getProtocol, getSplitMessageBeginText, getSplitMessageEndText, getThreaded, getThreadLoopInterval, getTruncateMessage, getUseStructuredData, getWriteRetries, isTrueOrOn, requiresLayout, setCharSet, setFacility, setHost, setIdent, setLocalName, setMaxMessageLength, setMaxShutdownWait, setPort, setProtocol, setSplitMessageBeginText, setSplitMessageEndText, setThreaded, setThreadLoopInterval, setTruncateMessage, setUseStructuredData, setWriteRetries |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Syslog4jAppender()
Method Detail |
---|
public java.lang.String initialize()
initialize
in class Syslog4jAppenderSkeleton
public boolean getHeader()
public void setHeader(boolean header)
public java.lang.String getSyslogHost()
public void setSyslogHost(java.lang.String host)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |