writing to syslog file



Hi all,

I'm using Linux Kernel 2.6.17.6 and I need to write some specific
messages into syslog file. I'm using the syslog command:
syslog(LOG_INFO, "message");

After recompiling the kernel, I can not get any message in the syslog
file. Am I missing anything ? also, do I need to define the LOG_INFO
within the code and how?

Actually, I need to repeat this message several times within the same
kernel file (tcp_input.c).
Please advice, I really need help as soon as possible.

Thanks for your help,
Alaa

.



Relevant Pages

  • Re: [PATCH 00/23] per device dirty throttling -v8
    ... an XT when copying large files" bugzilla entry: ... start a large kernel build with DEBUG_INFO on a quad-core 4GB RAM box, ... I've got a syslog server that's got two Opteron 246 cpu's, 16G ram, 2x140G ...
    (Linux-Kernel)
  • Re: [PATCH 00/23] per device dirty throttling -v8
    ... start a large kernel build with DEBUG_INFO on a quad-core 4GB RAM box, ... I've got a syslog server that's got two Opteron 246 cpu's, 16G ram, 2x140G ... cron job copies the data to the raid array. ...
    (Linux-Kernel)
  • Re: Linux Boot-up Screens
    ... before the kernel is loaded and started. ... > The command "dmesg" dumps the contents of the kernel ring buffer. ... However, syslog is very customizable, you can have ... > programs, as long as we are talking about sysvinit scripts, are logged ...
    (comp.os.linux.misc)
  • [2.6.18-rc7] printk output delay in syslog wrt dmesg still unfixed
    ... which I reported for kernel 2.6.18-rc1 on my ... output from printkappears in syslog (eg. ...
    (Linux-Kernel)
  • Re: [PATCH 00/23] per device dirty throttling -v8
    ... start a large kernel build with DEBUG_INFO on a quad-core 4GB RAM box, ... I've got a syslog server that's got two Opteron 246 cpu's, 16G ram, 2x140G ... I have syslog doing buffered writes to the SCSI drives and every 5 min a cron job copies the data to the raid array. ... I've experimented with nice levels (nicing down the grep and nicing up the syslogd) without a noticable effect on the losses. ...
    (Linux-Kernel)