5.2 Syslog Configuration Directives

When running in standalone mode slb normally uses syslog to print diagnostic messages. By default, the program uses the ‘daemon’ facility. The syslog statement allows to change that:

Config: syslog { ... }
 
syslog {
  facility local1;
  tag slb;
  print-priority yes;
}
Config: syslog: facility name

Configures the syslog facility to use. Allowed values are: ‘auth’, ‘authpriv’, ‘cron’, ‘daemon’, ‘ftp’, ‘local0’ through ‘local7’, and ‘mail’.

Config: syslog: tag string

This statement sets the syslog tag, a string identifying each message issued by the program. By default, it is the name of the program with the directory parts removed.

Config: syslog: print-priority bool

In addition to priority segregation, provided by syslog, you can instruct slb to prefix each syslog message with its priority. To do so, set:

 
print-priority yes;