logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GKapit...@symcor.com
Subject SyslogAppender on non-default port
Date Tue, 27 Nov 2007 16:50:02 GMT
Hi all,

I'm trying to setup SyslogAppender to send messages to a remote server on a
non default port. The remoter server is syslog-ng.
Here's my configuration:

log4j.rootCategory=DEBUG, CONSOLE, FILE, SYSLOG
log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.SyslogHost=10.249.33.66:5551
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x
-%m\n


and here's the error:
log4j:ERROR Could not find 10.249.33.66:5551. All logging will FAIL.
java.net.UnknownHostException: 10.249.33.66:5551
        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
        at
java.net.InetAddress.getAddressFromNameService(InetAddress.java:1183)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1136)

I'm using geronimo-1.1 with log4j-1.2.8, syslog-ng is listening on udp 5551
port.

Any ideas?

Thanks,
Gabriel


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message