[syslog-ng]Adding new facilities

Brad Arlt arlt@cpsc.ucalgary.ca
Wed, 1 Aug 2001 10:57:15 -0600


Hello...

I am compiling syslog-ng 1.4.12 for Solaris 8, and noticed the IRIX
factilities of LOG_AUDIT and LOG_LFMT are not mentioned anywhere in
syslog-names.c.  Also the facilities of LOG_NTP, LOG_SECURITY, and
LOG_CONSOLE from BSD are not mentioned anywhere.

I have in the past (and will in this build) manually defined
LOG_AUTHPRIV and LOG_FTP for receiving messages from our Linux/BSD
machines (AUTHPRIV and FTP are a Linux and BSD thing).

If I understand the source code correctly the names are only used to
translate configuration file strings to number (e.g. "auth" ->
(4<<3)).  If I am right, this should mean I can add the above
facilities without any problems.

Can anyone tell me if this sounds right?

I am going to give it a try anyway, but I wanted to see if anyone
thought I was crazy, or if there was a better way to do this.
----------------------------------------------------------------------------
   __o		Bradley Arlt	  Email: arlt@cpsc.ucalgary.ca         o__
 _ \<_				    WWW: www.acs.ucalgary.ca/~bdarlt   _>/ _
(_)/(_)  -Eat well, sleep peacefully, drink lots, and ride like hell. (_)\(_)