[Linux-ha-dev] heartbeat always writes logs to system log for any
configs
Andrew Beekhof
beekhof at gmail.com
Thu Jan 24 00:46:36 MST 2008
On Jan 24, 2008, at 12:50 AM, DAIKI MATSUDA wrote:
> Hi, Linux-HA developers all.
>
> I posted to linux-ha ML
> (http://www.gossamer-threads.com/lists/linuxha/users/45268), but
> because almost reply does not returned, I will post to here again.
>
> In ha.cf sample in /usr/share/doc/heartbeat-2.1.3 it is written in
> the following
> # Note on logging:
> # If any of debugfile, logfile and logfacility are defined then they
> # will be used. If debugfile and/or logfile are not defined and
> # logfacility is defined then the respective logging and debug
> # messages will be loged to syslog. If logfacility is not defined
> # then debugfile and logfile will be used to log messges. If
> # logfacility is not defined and debugfile and/or logfile are not
> # defined then defaults will be used for debugfile and logfile as
> # required and messages will be sent there.
>
> Though I set the configs to
> logfile /var/log/ha-log
> debugfile /var/log/ha-debug
> #logfacility local0
> , the Heartbeat writes the logs to system log file.
>
> Is it the feature to always write logs to system log? I think that it
> is the bug and feel better to behave to write to only indicated file
> such as apache.
IIRC, the only way to turn off syslog logging is with:
logfacility none
More information about the Linux-HA-Dev
mailing list