set_aumessage_mode(3) — Linux manual page


SET_AUMESSAGE_MODE(3)   Linux Programmer's Manual  SET_AUMESSAGE_MODE(3)

NAME         top

       set_aumessage_mode - Sets the message mode

SYNOPSIS         top

       #include <libaudit.h>

       void set_aumessage_mode(message_t mode, debug_message_t debug);

DESCRIPTION         top

       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         top

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

RETURN VALUE         top


SEE ALSO         top

       auditd(8), audit_open(3).

AUTHOR         top

       Debora Velarde.

COLOPHON         top

       This page is part of the audit (Linux Audit) project.
       Information about the project can be found at 
       ⟨⟩.  If you have a bug
       report for this manual page, send it to
       This page was obtained from the project's upstream Git repository
       ⟨⟩ on
       2021-08-27.  (At that time, the date of the most recent commit
       that was found in the repository was 2021-08-21.)  If you
       discover any rendering problems in this HTML version of the page,
       or you believe there is a better or more up-to-date source for
       the page, or you have corrections or improvements to the
       information in this COLOPHON (which is not part of the original
       manual page), send a mail to

Linux 2.6                      2004-12-01          SET_AUMESSAGE_MODE(3)