[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bird-users
Subject:    Re: Setting different facility parameter for logging
From:       Ondrej Zajicek <santiago () crfreenet ! org>
Date:       2019-01-06 0:38:17
Message-ID: 20190106003817.itm4lmfijo67dedz () feanor ! crfreenet ! org
[Download RAW message or body]

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?

Hi

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

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic