You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Unnikrishnan Udinoor <uu...@Brocade.COM> on 2008/07/26 03:31:30 UTC

Can I configure SyslogAppender to post the log messages to any non standard port?

Hi,

Is there any way (other than changing the source code ) for configuring
the SyslogAppender to be configured  for forwarding the messages to any
specified port so that a syslog server listening to any specific port
which is non standard port(different than 514) can consume.

 

I see the port defined at syslogwriter.cpp as follows : 

#define SYSLOG_PORT 514

 

Assumes that this is the only port that log4cxx forwards the logs for
the syslog appender.

 

Please let me know if there is any way.

 

Regards

Unni

 

 


Re: Can I configure SyslogAppender to post the log messages to any non standard port?

Posted by Dale King <da...@gmail.com>.
On Fri, Jul 25, 2008 at 9:31 PM, Unnikrishnan Udinoor
<uu...@brocade.com> wrote:
> Hi,
>
> Is there any way (other than changing the source code ) for configuring the
> SyslogAppender to be configured  for forwarding the messages to any
> specified port so that a syslog server listening to any specific port which
> is non standard port(different than 514) can consume.
>
>
>
> I see the port defined at syslogwriter.cpp as follows :
>
> #define SYSLOG_PORT 514
>
>
>
> Assumes that this is the only port that log4cxx forwards the logs for the
> syslog appender.
>
>
>
> Please let me know if there is any way.

Nope. As you guessed it is hardcoded.

-- 
Dale King