[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] ocf_log



yes. Messages from logger (which uses the same facility as rm) and
debug messages from the ip resource agent show up.

Greetings
   Christoph


>
> Have you defined a syslog.conf entry for your local4 facility ?
>
> example:
>
> local4.*                /var/log/rgmanager
>
> Brem
>
> 2010/3/31 C. Handel <christoph macht-blau org>:
>> ?Hi List,
>>
>> i'm writing a custom resource agent. In the resource agent i try to
>> use the ocf_log funtions but they don't work as expected. When i run
>> the rgmanager in the foreground (clurgmgrd -df) i get all the message
>> i want. When running as a normal daemon i can't find my log entries.
>>
>> The agent goes something like this
>>
>> #!/bin/bash
>> PATH=/bin:/sbin:/usr/bin:/usr/sbin
>> . $(dirname $0)/ocf-shellfuncs
>>
>> status() {
>> ? ocf_log debug "status has been called (ocf_log)"
>> ? logger -p local4.debug "status has been called (logger)"
>> }
>>
>>
>> the cluster.conf part
>>
>> <rm log_level="7" log_facility="local4">
>> ...
>>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]