setlogmask()

set log priority mask for process 

Function


SYNOPSIS

#include <syslog.h>

int setlogmask(int maskpri);


DESCRIPTION

The setlogmask() function sets the log priority mask for the current process to maskpri and returns the previous mask. If the maskpri argument is 0, the current log mask is not modified. The default log mask allows all priorities to be logged.


PARAMETERS

maskpri 

Is encoded within the NuTCRACKER Platform to reflect the Microsoft Win32 event type. The UNIX priority is translated as follows:

LOG_EMERG 

An error event. This priority logs the event as a Win32 error event and displays the alert box containing the message on the screen. The process is terminated when the user selects OK in the dialog box.

LOG_ALERT, LOG_CRIT, LOG_ERR 

An error event. This priority logs the event as a Win32 error event and returns control to the calling process.

LOG_WARNING 

A warning event. This priority logs the event as a Win32 warning event and returns control to the calling process.

LOG_NOTICE, LOG_INFO, LOG_DEBUG 

An information event. This priority logs the event as a Win32 information event and returns control to the calling process.


RETURN VALUES

The setlogmask() function returns the previous mask.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
closelog(), openlog(), syslog(), vsyslog()


PTC MKS Toolkit 10.3 Documentation Build 39.