Differences between revisions 3 and 4
Revision 3 as of 2011-09-08 07:16:27
Size: 935
Editor: 94
Revision 4 as of 2012-03-14 16:41:18
Size: 831
Editor: wings
Comment: Remove spam
Deletions are marked like this. Additions are marked like this.
Line 34: Line 34:

[[http://www.theroofdoctors.net/roof_repairs_castro_valley.php|roof repairs castro valley ca]]

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("") port(514));


Snippet of log4jConfig.xml:


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

  • <param name="SyslogHost" value=""/> <param name="Facility" value="USER"/> <param name="FacilityPrinting" value="true"/> <layout class="org.apache.log4j.PatternLayout">

    • <param name="ConversionPattern"

      • value="%t %5r %-5p %-21d{yyyyMMdd HH:mm:ss,SSS} %c{2} [%x] %m %n"/>



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