set_aumessage_mode(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | RETURN VALUE | SEE ALSO | AUTHOR | COLOPHON

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

       None.

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 
       ⟨http://people.redhat.com/sgrubb/audit/⟩.  If you have a bug
       report for this manual page, send it to linux-audit@redhat.com.
       This page was obtained from the project's upstream Git repository
       ⟨https://github.com/linux-audit/audit-userspace.git⟩ on
       2023-12-22.  (At that time, the date of the most recent commit
       that was found in the repository was 2023-11-30.)  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 man-pages@man7.org

Linux 2.6                      2004-12-01          SET_AUMESSAGE_MODE(3)