Redirecting the kernel messages to file other than /var/log/messages
Hi ,
I am trying to bifurcate the kernel messages generated by my kernel module from the default kernel messages genrated by other kernel modules. How shud i do it?
I tried using PRIORITY option used with printk, and then configuring the "klogd" as
klogd -c <mypriorty> -f <filename>
and then using printk in my kernel module with :
printk("<mypriority> Hello World");
But it doesnt work. It gives at least all other messages with defualt priority level, which is excatly i want to prevent .
Can anyone please help me with my present method or suggest something else ??
|