Re: writing to syslog file



Alaa wrote:
I used :
"printk(KERN_INFO "message"\n);
within tcp_input.c file, and did recompile using "make bzImage". The
system recompiled without any errors. But I can not see any message
(those I inserted in the file).

Couple things to try:

First, this command: "echo 8 >/proc/sys/kernel/printk" should make
*all* subsequent printk output show up on the console whether it goes
to syslog or not.

Second, check /etc/syslog.conf to see how the syslog subsystem is
configured. Read the syslog.conf manual page to find out how to
interpret/modify the file contents. Also make sure that the syslogd
and klogd daemons are actually running (klogd actually collect the
printk output from the kernel). Read their manual pages as needed too.

GH

.