SYNOPSIS
#include <syslog.h>
int setlogmask(int maskpri);
DESCRIPTION
The
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
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.5 Documentation Build 40.