Open System Services Programmer's Guide

Logging Parameters and EMS Tokens
OSS logging function parameters correspond to the EMS tokens listed on the syslog(3) reference
page, which is available either online or in the Open System Services Library Calls Reference
Manual. The values of the tokens can be changed by the functions described in this section, but
the tokens themselves cannot be changed with the OSS API.
Table 34 lists logging function parameters with their corresponding EMS tokens.
Table 34 OSS Logging Function Parameters and Corresponding EMS Tokens
TokenParameter
ZOSS-TKN-FACILITYfacility
ZOSS-TKN-IDENTidentity
ZOSS-TKN-LEVELlevel
ZEMS-TKN-TEXTmessage
The OSS process ID value displayed in log messages corresponds to the value of the ZOSS-TKN-PID
token. This parameter is included in the event message only if LOG_PID is specified to openlog().
OSS Logging-Mechanism Functions
Table 35 (page 243) displays information about each OSS function that you can use to manage
logging. The columns of the table contain the following:
OSS Function
The name of the function and a brief description.
OSS Notes
Notes about the OSS implementation of the function.
Guardian Notes
Notes about using the function on a Guardian process.
The information in this table is only a summary of the information in the reference page for a
function. For details, refer to the reference pages either online or in the Open System Services
System Calls Reference Manual and the Open System Services Library Calls Reference Manual.
Table 35 OSS Logging-Mechanism Functions
Guardian NotesOSS NotesOSS Function
closelog()
Closes the collector process that was
opened by openlog() or
syslog().
If you specify the LOG_PID option on
a Guardian process, the syslog()
function fails with Guardian trap 5.
openlog()
Initializes logging parameters.
perror()
Writes a message explaining the last
error encountered by a library
function.
setlogmask()
Sets the EMS event log mask.
OSS Logging-Mechanism Functions 243