Go to main content

Oracle Solaris Cluster 4.3 Reference Manual

Exit Print View

Updated: September 2015
 
 

scds_syslog (3HA)

Name

scds_syslog - write a message to the system log

Synopsis

cc [flags…] –I /usr/cluster/include file –L /usr/cluster/lib 
     –l dsdev#include <rgm/libdsdev.h>void scds_syslog(int priority, 
     const char*format...

Description

The scds_syslog() function writes a message to the system log. It uses the facility returned by thescha_cluster_getlogfacility(3HA) function. You can forward these messages to appropriate log files and users. See syslog.conf (4) for more information.

All syslog messages are prefixed with the following:

SC[<resourceTypeName>,<resourceGroupName>,<resourceName>,<methodName>

Caution

Caution  -  Messages written to the system log are not internationalized. Do not use gettext() or other message translation functions in conjunction with this function.


Parameters

The following parameters are supported:

priority

Message priority, as specified by syslog (3C)

format

Message format string, as specified by printf (3C)

...

Variables, indicated by the format parameter, as specified by printf()

Files

/usr/cluster/include/rgm/libdsdev.h

Include file

/usr/cluster/lib/libdsdev.so

Library

Attributes

See attributes (5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
ha-cluster/developer/api
Interface Stability
Evolving

See Also

printf (3C) , scds_syslog_debug(3HA), scha_cluster_getlogfacility(3HA), syslog (3C) , syslog.conf (4) , attributes (5)