/[Apache-SVN]
ViewVC logotype

Revision 924176


Jump to revision: Previous Next
Author: sdeboy
Date: Wed Mar 17 07:16:06 2010 UTC (14 years, 1 month ago)
Changed paths: 20
Log Message:
Added ZeroConf support to most of the network-based appenders and receivers.

To enable ZeroConf advertising of an appender or receiver, a user can now:
 - add jmdns jar to their classpath 
 - set the 'advertiseViaMulticastDNS' param to 'true'

Also added support for discovery of appenders in Chainsaw (Chainsaw will automatically configure a matching receiver when connected).
Supported appenders:
    SocketAppender
    SocketHubAppender (ZeroConfSocketHubAppender is still functional)
    UDPAppender
    MulticastAppender
Supported receivers:
    SocketReceiver
    SocketHubReceiver (also receives events from ZeroConfSocketHubAppender)
    XMLSocketReceiver (can receive events sent over TCP by other logging frameworks)
    UDPReceiver
    MulticastReceiver

Implementation details:
 - removed Zeroconf4log4j class, jmdns access is now through the ZeroConfSupport class (class provides support of JmDNS and ServiceInfo creation via reflection, and supports both jmdns 1.0 and jmdns 3.1 apis)
 - ZeroConfSupport class is now used by ZeroConfSocketHubAppender, Chainsaw and all appenders & receivers that can advertise their configuration via ZeroConf
 - added new 'advertiseViaMulticastDNS' param to the appenders and receivers that support ZeroConf
 - updated the ZeroConf site documentation
 - updated release notes
 - updated the ZeroConfPlugin html file
 - tested appenders with 1.0 and 3.1 jmdns jars
 - updated log4j references in poms to log4j 1.2.16-snapshot where necessary 

For those wanting to add ZeroConf support to third-party appenders and have Chainsaw discover the appenders, the service info naming convention is described here: https://issues.apache.org/bugzilla/show_bug.cgi?id=48907


Changed paths

Path Details
Directorylogging/chainsaw/trunk/pom.xml modified , text changed
Directorylogging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java modified , text changed
Directorylogging/chainsaw/trunk/src/main/resources/org/apache/log4j/chainsaw/help/release-notes.html modified , text changed
Directorylogging/chainsaw/trunk/src/main/resources/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.html modified , text changed
Directorylogging/chainsaw/trunk/src/site/apt/zeroconf.apt modified , text changed
Directorylogging/log4j/companions/receivers/trunk/pom.xml modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/MulticastAppender.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/MulticastReceiver.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/MulticastReceiverBeanInfo.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/SocketHubReceiver.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/SocketReceiver.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/UDPAppender.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/UDPReceiver.java modified , text changed
Directorylogging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/net/XMLSocketReceiver.java modified , text changed
Directorylogging/log4j/companions/zeroconf/trunk/src/main/java/org/apache/log4j/net/ZeroConfSocketHubAppender.java modified , text changed
Directorylogging/log4j/companions/zeroconf/trunk/src/main/java/org/apache/log4j/net/Zeroconf4log4j.java deleted
Directorylogging/log4j/companions/zeroconf/trunk/src/test/java/org/apache/log4j/net/ZeroConfSocketHubAppenderTest.java modified , text changed
Directorylogging/log4j/trunk/src/main/java/org/apache/log4j/net/SocketAppender.java modified , text changed
Directorylogging/log4j/trunk/src/main/java/org/apache/log4j/net/SocketHubAppender.java modified , text changed
Directorylogging/log4j/trunk/src/main/java/org/apache/log4j/net/ZeroConfSupport.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26