4 Based on printk()'s loglevel, the kernel may print the message to the current
5 console. If the priority is less than the integer variable console_loglevel,
6 the message is delivered to the console one line at a time (nothing is sent
7 unless a trailing newline is provided). If both klogd and syslogd are running
8 on the system, kernel messages are appended to /var/log/message (it depends on
9 your local syslog configuration), independent of console_loglevel. If klogd is
10 not running, the message won't reach user space unless you read /proc/kmsg
11 (which is often easily done with the dmesg command).
13 It is also possible to read and modify the console loglevel using the text file /proc/sys/
14 kernel/printk. The file hosts four integer values: the current loglevel, the default level
15 for messages that lack an explicit loglevel, the minimum allowed loglevel, and the
16 boot-time default loglevel. Writing a single value to this file changes the current
17 loglevel to that value; thus, for example, you can cause all kernel messages to appear
18 at the console by simply entering:
20 # echo 8 > /proc/sys/kernel/printk