[Linux-ha-dev] heartbeat always writes logs to system log for any
configs
Andrew Beekhof
beekhof at gmail.com
Tue Feb 12 01:19:38 MST 2008
applied. thanks!
On Feb 5, 2008, at 2:34 AM, DAIKI MATSUDA wrote:
> Thank you for replying.
>
> For a few days I read the source code for understanding the behaviour
> to write logs. And I got some questions.
> 0. Obviously the comment on ha.cf sample file is incorrect and
> attached the patch file.(ha.cf.fix_comment.patch)
> 1. Maybe many people set not to write to system logs, because
> heartbeat earns so many logs with logfacility none. I feel that it is
> better that the default behaviour is not writing to system logs and
> writing other files.
> 2. In spite of not using ha_logd, Heartbeat init script boot up it.
> And ha_logd configuration file place is fixed. So, I add the
> function.(ha_logd.init.patch)
>
> Best Regards
> MATSUDA, Daiki
>
> 2008/1/24, Andrew Beekhof <beekhof at gmail.com>:
>>
>> 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
>>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> <
> ha_logd
> .init
> .patch
> >
> <
> ha
> .cf
> .fix_comment
> .patch>_______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
More information about the Linux-HA-Dev
mailing list