set_message_mode — Sets the message mode

Synopsis

#include <libaudit.h>

void set_message_mode (message_t mode);

Description

set_message_mode sets the location where informational messages are sent. If mode=0 (default), then informational messages are sent to stderr. If mode=1, then informational messages are sent to syslog.

Example

/* Sample code */
set_message_mode(MSG_SYSLOG)

See Also

auditd(8), audit_open(3).

Author

Debora Velarde.

Info

2004-12-01 Linux 2.6 Linux Programmer's Manual