set_aumessage_mode - Man Page

Sets the message mode

Synopsis

#include <libaudit.h>

void set_aumessage_mode(message_t mode, debug_message_t debug);

Description

set_aumessage_mode sets the location where messages are sent and the output of the debug messages.

If mode=MSG_STDERR, then messages are sent to stderr. If mode=MSG_SYSLOG, then messages are sent to syslog. If mode=MSG_QUIET (default), then messages are not sent.

If debug=DBG_YES, then debug messages are output. If debug=DBG_NO (default), then debug messages are not output.

Example

/* Sample code */
set_aumessage_mode(MSG_SYSLOG, DBG_YES)

Return Value

None.

See Also

auditd(8), audit_open(3).

Author

Debora Velarde.

Info

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