Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 8

setlogmask()

Set the system log priority mask

Synopsis:

#include <syslog.h>

int setlogmask( int maskpri );

Arguments:

maskpri
The new log priority mask; see below.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The setlogmask() function sets the log priority mask to maskpri and returns the previous mask. Calls to syslog() or vsyslog() with a priority that isn't set in maskpri are rejected.

You can calculate the mask for an individual priority pri with the macro:

LOG_MASK(pri);

You can get the mask for all priorities up to and including toppri with the macro:

LOG_UPTO(toppri);

The default allows all priorities to be logged. See the syslog() function for a list of the priorities.

Returns:

The previous log mask level.

Examples:

See syslog().

Classification:

POSIX 1003.1 XSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

closelog(), openlog(), syslog(), vsyslog()

logger, syslogd in the Utilities Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 144

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/setlogmask.html on line 144