The current implementation of the SyslogAppender uses udp only to send log messages to a syslog (syslog-ng) daemon. Therefore the syslog-ng has to be enabled to accept udp. I got it working with the following configuration.

Example Configuration Snippets:

Snippet of syslog-ng.conf

source src {

# # your other config #

udp(ip("127.0.0.1") port(514));

}

Snippet of log4jConfig.xml:

....

<appender name="syslog" class="org.apache.log4j.net.SyslogAppender">

</appender>

syslog (last edited 2012-03-14 16:41:18 by RichardFrovarp)