Redirecting the kernel messages to file other than /var/log/messages
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 ??
the config script for logrotate may have something to
do with this.......maybe
Thanks for ur response. I tried changing configurations in the /etc/syslog.conf
Something like :
kern.debug <my file name>
But the problem is that then all the kernel messages with debug priority ( This i cud not understand ,how the fine filtering takes place with PRIORITY ) are dumped to <my file>
And my purpose of bifurcating the kernel messages of my driver is not served.
Sweet, I learned a new term today, bifurcate. :)
I'll move this on over to Linux - General, I don't see this as getting a lot of responses in Linux - Newbie ;)
|All times are GMT -5. The time now is 12:25 AM.|