On Wed, Jun 26, 2013 at 11:14:25PM +0200, Lars Marowsky-Bree wrote:
> On 2013-06-26T19:48:41, Tony Stocker <[email protected]> wrote:
> 
> > Where exactly do calls using 'ocf_log' log the information?  For instance
> > with the call:
> > 
> >     ocf_log info "Starting $InstanceName"
> > 
> > inside a start function, where (what file) should I be looking for this
> > output?
> 
> /var/log/messages.

It really depends on the syslog configuration and the facility
defined in corosync/pacemaker. If a RA is run from the command
line (or by ocf-tester/ocft) the log will go to stderr.

> Though I'd be open to consider a separate log file per agent; the
> ocf-shellfunc file could make that configurable easily enough.

A log file per agent or per resource? I'd say that grep would do
just like "cat /var/log/ralogs/myra/myinstance.log".

> > Does any configuration need to be done to have the logging enabled or should
> > it work by default 'out of the box'?
> 
> It ought to work by default.

Again, depends on the syslog configuration. Let's hope you have a
well configured host :)

Thanks,

Dejan

> 
> Regards,
>     Lars
> 
> -- 
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, 
> HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to