MirBSD manpage: addlog(9), log(9)

LOG(9)                        BSD Kernel Manual                         LOG(9)

NAME

     log, addlog - log a message from the kernel through the /dev/klog device

SYNOPSIS

     #include <sys/syslog.h>

     void
     log(int level, const char *format, ...);

     void
     addlog(const char *format, ...);

DESCRIPTION

     The log() function allows the kernel to send formatted messages to user
     processes listening on /dev/klog. Usually syslogd(8) monitors /dev/klog
     for these messages and writes them to a log file.

     All messages are formatted using printf(9), logged using facility
     LOG_KERN, and priority level level.

     The addlog() function is used to build a log message in steps, by adding
     information to an initial call to log().

SEE ALSO

     syslog(3), syslogd(8), printf(9)

MirBSD #10-current               May 12, 1997                                1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung