set the system log priority mask
#include <syslog.h> #include <varargs.h> int setlogmask( int maskpri );
The setlogmask() function sets the log priority mask to maskpri and returns the previous mask. Calls to syslog() with a priority not set in maskpri are rejected.
The mask for an individual priority pri is calculated by the macro:
LOG_MASK(pri);
The mask for all priorities up to and including toppri is given by the macro:
LOG_UPTO(toppri);
The default allows all priorities to be logged. See the syslog() function for a list of the priorities.
The previous log mask level.
See syslog().
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
closelog(), openlog(), syslog(), vsyslog()
logger, syslogd in the QNX Utilities Reference