Re: is it possible to write to some my log file...just like user space program?
- From: Tim Southerwood <ts@xxxxxxxxxx>
- Date: Tue, 26 Jun 2007 16:08:00 +0100
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
.
- References:
- is it possible to write to some my log file...just like user space program?
- From: google-rambo88
- is it possible to write to some my log file...just like user space program?
- Prev by Date: "Default" value for close on exec flag
- Next by Date: Re: My way to check if a progam is already running
- Previous by thread: is it possible to write to some my log file...just like user space program?
- Next by thread: "Default" value for close on exec flag
- Index(es):
Relevant Pages
|