LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Redirecting the kernel messages to file other than /var/log/messages (http://www.linuxquestions.org/questions/linux-general-1/redirecting-the-kernel-messages-to-file-other-than-var-log-messages-316055/)

jyotika_b83 04-22-2005 10:34 AM

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 ??

freakyg 04-23-2005 01:33 AM

the config script for logrotate may have something to
do with this.......maybe

jyotika_b83 04-23-2005 02:12 AM

Hi ,
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.

MasterC 04-28-2005 06:39 PM

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 ;)

Cool


All times are GMT -5. The time now is 07:25 AM.