Quote:
Originally Posted by GarryR
I am not sure what the facility is, does that need to be created, or for example, using localhost, would it be "local0.err" ?
|
Fortunately, you don't have to create the facility.
The facilities, such as
local1, are pre-defined within the syslog system. A good place to start reading about them is the configuration file man page
syslog.conf(5).
So, programs (often daemons) will use syslog to log various messages they have, and use the existing
facilities to log to, at various logging
levels which are used to distinguish the importance of the message. If the program is well-documented the man page (or other material) should explain what facility it uses and what kind of things it sends at a given level. Not all programs may do this clearly (they may after all not be part of the OS), in which case as user you have to do more detective work to find what you want.