Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between all the kernel log functions?

difference functions Kernel log
0
Posted

Whats the difference between all the kernel log functions?

0

Justin Walker provided an excellent explaination on the development list: Use of the various kernel print mechanisms: log(), kprintf(), printf() SYSLOG: The kernel function log() posts messages to a kernel buffer where they are picked up by the syslogd daemon and in turn written to a destination specified in /etc/syslog.conf. The mechanisms are discussed in man syslog, man syslogd, and man syslog.conf. KPRINTF: The kernel function kprintf() will normally be disabled, but can be enabled with an argument to the boot command (see below). If enabled, this function will display its output on the system’s serial line (modem port). PRINTF: The kernel function printf() differs from kprintf() in the way the printouts are handled. “Printf” strings will be placed in the system log file (/var/log/system.log) in all cases. If the kernel boots in “verbose” mode, they will display on the video console until the window server comes up. When the user has “logged in” as ‘console’, or is otherwise not us

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123