SET_AUMESSAGE_MODE(3)
π set_aumessage_mode(3) β like, the message mode setter π
okay bestie, welcome to the Linux Programmer's Manual entry for set_aumessage_mode, and no cap, this one is short and sweet and honestly kind of a slay.
πΈ NAME πΈ
set_aumessage_mode β Sets the message mode β¨
π SYNOPSIS π
#include <libaudit.h>
void set_aumessage_mode(message_t mode, debug_message_t debug);
like, that's it. two args, no return value, we love a low-maintenance function π«Ά
π¦ DESCRIPTION π¦
okay so set_aumessage_mode sets where messages are sent and also controls the output of the debug messages. it's giving traffic controller but for logs π
So here's the vibe check on mode:
- If
mode=MSG_STDERR, then messages are sent tostderr. like right in your face, in the terminal π - If
mode=MSG_SYSLOG, then messages are sent to syslog. the classy route, the main character route π - If
mode=MSG_QUIET(default), then messages are not sent. silence. peace. nothing. not a single crumb π
And now for the debug parameter, bestie:
- If
debug=DBG_YES, then debug messages are output. full yapping mode enabled π₯ - If
debug=DBG_NO(default), then debug messages are not output. quiet little angel behavior π§
ngl, the defaults here areMSG_QUIETandDBG_NO, so if you don't touch anything, this function is literally just sitting there minding its own business. you have to ask for the noise, fr fr.
β EXAMPLE β
here's the sample code, straight from the source, character for character:
/* Sample code */
set_aumessage_mode(MSG_SYSLOG, DBG_YES)
look at her. sending messages to syslog AND turning debug output on. iconic. ate. periodt π
π RETURN VALUE π
None. π
like genuinely, nothing comes back. it's a void function, she gives and she does not receive. respect.
π SEE ALSO π
go read those too, iykyk πβ¨
π AUTHOR π
Debora Velarde. queen behavior, we stan π
and that's the whole page, bestie!! this one came from the Linux 2.6 era, dated 2004-12-01, so she's an old soul but she still slays π β¨ hope this helped, mwah!! πΈπ¦π
π¦ where this page comes from
- alpine 3.22: audit-doc 4.0.3-r0 Β· LGPL-2.1-or-later
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- debian bookworm: libaudit-dev 1:3.0.9-1 Β· GPL-2.0-only
- debian trixie: libaudit-dev 1:4.0.2-2+deb13u1 Β· GPL-2.0-only
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu jammy: libaudit-dev 1:3.0.7-1build1 Β· GPL-2.0-only
- ubuntu jammy: libaudit-dev 1:3.0.7-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu noble: libaudit-dev 1:3.1.2-2.1build1 Β· GPL-2.0-only
- ubuntu noble: libaudit-dev 1:3.1.2-2.1ubuntu0.1 Β· GPL-2.0-only
- ubuntu questing: libaudit-dev 1:4.0.5-1build1
- Copyright (C) 2004 IBM
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms