Chris Calabrese <[EMAIL PROTECTED]> wrote:
> Under Linux, syslog has a maximum of 24 facility names & codes...
I'd rather see a fixed number of facilities and priorities. Otherwise you
risk balkanization. For example: you often can't copy a syslog.conf from
solaris to freebsd, or from freebsd to linux. This is a scenario to be
avoided.
>But, but, but... why should the facilities be integers in the first
>place? They're just tags. Names. Strings. Why do I need a mapping
>between strings and integers to maintain?
Good question. You typically need to map between strings and integers
only in the source code. That said I'd get rid of that mapping for
priorities and maintain it for facilities:
Proposed priorities:
1-10 (info - debug)
Proposed facilities:
A) maintain all common existing facilities for backwards compatibility:
kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron,
local0 - local7,
B) add a fixed number of new facilities: ftp, ntp, authpriv,
local8 - local20, ...
--
Roger Marquis
Roble Systems Consulting
http://www.roble.com/