The use_logd directive specifies whether Heartbeat logs its messages through logging daemon or not. The syntax is simple:
use_logd <on/off>
(Note: use_logd can be any HeartbeatBoolean value)
The detailed policy is:
1. if there is any entry for debugfile/logfile/logfacility in ha.cf
a) if use_logd is not set, logging daemon will not be used
b) if use_logd is set to on, logging daemon will be used
c) if use_logd is set to off, logging daemon will not be used
2. if there is no entry for debugfile/logfile/logfacility in ha.cf
a) if use_logd is not set, logging daemon will be used
b) if use_logd is set to on, logging daemon will be used
c) if use_logd is set to off, config error, i.e. you can not turn off all logging options
If the logging daemon is used, all log messages will be sent through IPC to the logging daemon, which then writes them into log files. In case the logging daemon dies (for whatever reason), a warning message will be logged and all messages will be written to log files directly.
If the logging daemon is used, logfile/debugfile/logfacility in this file are not meaningful any longer. You should check the config file for logging daemon (the default is /etc/logd.cf).
If use_logd is not used, all log messages will be written to log files directly.
The logging daemon is started/stopped in heartbeat script.
Setting use_logd to "yes" is recommended.