Skip Navigation Links
Exit Print View
| Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 4.1

Search Scope:

- This Document
- Entire Library

### 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 the`scha_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: `SC[<resourceTypeName>,<resourceGroupName>,<resourceName>,<methodName>`

| 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)

Copyright © 2000, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |