Re: is it possible to write to some my log file...just like user space program?



google-rambo88 coughed up some electrons that declared:


Hi...
if I use printk () funciton from my device module... it goes to
dmesg...

is it possible to write to some my log file...just like user space
program?

Thansk...

Generally, one would configure a syslog daemon (syslogd or syslog-ng) to do
this (distro default config usually does this, to /var/log/messages). They
actually are available from /proc/kmsg too (which is where syslog gets
them).

HTH

Tim


.



Relevant Pages

  • Re: Linux v2.6.18-rc1: printk delays
    ... With kernel 2.6.18-rc1 I am experiencing strange delays before printk ... messages from my driver appear in the syslog. ... With kernel 2.6.17.1 on the same machine there are no such delays. ...
    (Linux-Kernel)
  • Re: Linux time in millisconds
    ... I'm doing TCP benchmarking tests and I need to get the time in syslog ... I was trying to use Printk ... Is there anyway to get the system time displayed in milliseconds ...
    (comp.os.linux.development.system)
  • Re: Linux v2.6.18-rc1: printk delays
    ... messages from my driver appear in the syslog. ... The last couple of printk ... lines only appear if I hit a key on the system keyboard. ... Note how the PRINTK_TIME timestamps increase in sub-second increments ...
    (Linux-Kernel)
  • Re: Linux time in millisconds
    ... I'm doing TCP benchmarking tests and I need to get the time in syslog ... I was trying to use Printk ... Is there anyway to get the system time displayed in milliseconds ... printing of timestamps out of printk. ...
    (comp.os.linux.development.system)
  • Re: Linux time in millisconds
    ... | I'm doing TCP benchmarking tests and I need to get the time in syslog ... | file with milliseconds. ... I was trying to use Printk ...
    (comp.os.linux.development.system)