#include <libaudit.h>
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.
/* Sample code */ set_message_mode(MSG_SYSLOG)
auditd(8), audit_open(3).