Setting different facility parameter for logging

Ondrej Zajicek santiago at
Sun Jan 6 01:38:17 CET 2019

On Wed, Jan 02, 2019 at 02:43:59PM +0100, Jakub Nowacki wrote:
> Hi,
> I'm running BIRD on Arista switch that allows entering bash. What I want to
> achieve is to have logs from BIRD being integrated into Switch OS. Meaning
> when BIRD logs a message it will appear in the output of 'show logging'
> >From switch documentation I know it is possible, but it needs to set a
> certain "facility" parameter when running C function "openlog"
> >From BIRD source code for sysdep/unix/log.c:
> > if (new_syslog_name)
> >   {
> >     current_syslog_name = xstrdup(new_syslog_name);
> >
> > *openlog(current_syslog_name, LOG_CONS | LOG_NDELAY, LOG_DAEMON);*  }
> What I need is instead of having LOG_DAEMON I need LOG_LOCAL4
> Is it possible to set this via BIRD configuration or only way is to compile
> from source to achieve this? Perhaps there is another way to achieve that
> logging behavior?


It is not possible, you have to patch the source and compile it.

Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3,
"To err is human -- to blame it on a computer is even more so."

More information about the Bird-users mailing list