<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
On 05.03.2011 19:42, Siddu wrote:
<blockquote
cite="mid:AANLkTik2VRKccsidQZzFG0EzSET=YBruhaKceEfZ0bGi@mail.gmail.com"
type="cite">Hi all,<br>
Hi all,
<div><br>
</div>
<div>I am little stuck understanding this piece of code below and
the way its been working <br>
<br>
Question: since KERN_INFO = 6 # which is msg_log_level<br>
and as per code
<div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<b>msg_log_level < console_loglevel</b></div>
<div><br>
</div>
<div> this line of printk is not supposed to show up in the
dmesg log ? but it is showing up . Why <br>
</div>
</div>
</blockquote>
<br>
console_loglevel concern messages that should display on the CONSOLE
not "dmesg" and controls if message is enough important (read: have
prioryty below <b>console_loglevel) </b>to display it on the
console. You must know that, kernel logs its messages into buffer
(into the RAM) which have constant size, when you type dmesg, you
simply read messages from that buffer (ring-buffer), so that why you
see your line in dmesg.<br>
<br>
What is more, there is deamon called syslog (rsyslog) which reads
this buffer periodically and saves messages in appropriate log file
on the hard drive e.g. /var/log/kern.log or /var/log/messages etc.
You can configure rsyslog as you wish, to log certain types messages
into logfiles.<br>
<br>
<br>
--<br>
regards<br>
Andrzej Kardas<br>
<a class="moz-txt-link-freetext" href="http://www.linux.mynotes.pl">http://www.linux.mynotes.pl</a><br>
</body>
</html>