logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GKapit...@symcor.com
Subject Re: SyslogAppender on non-default port
Date Wed, 28 Nov 2007 18:28:53 GMT
Thanks,  it worked.

Regards,
Gabriel



                                                                           
             Curt Arnold                                                   
             <carnold@apache.o                                             
             rg>                                                        To 
                                       "Log4J Users List"                  
             27/11/2007 12:32          <log4j-user@logging.apache.org>     
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: SyslogAppender on non-default   
               "Log4J Users            port                                
                   List"                                                   
             <log4j-user@loggi                                             
              ng.apache.org>                                               
                                                                           
                                                                           
                                                                           





On Nov 27, 2007, at 10:50 AM, GKapitany@symcor.com wrote:

> 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
>

Update to log4j 1.2.15.  The ability to specify a port in syslogHost
was added through bug 39687 (
http://issues.apache.org/bugzilla/show_bug.cgi?id=39687
) and was first available in log4j 1.2.14.

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




---------------------------------------------------------------------
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