Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-22-2005, 10:34 AM   #1
LQ Newbie
Registered: Apr 2005
Location: Hyderabad
Distribution: Red hat
Posts: 2

Rep: Reputation: 0
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 ??
Old 04-23-2005, 01:33 AM   #2
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
the config script for logrotate may have something to
do with this.......maybe
Old 04-23-2005, 02:12 AM   #3
LQ Newbie
Registered: Apr 2005
Location: Hyderabad
Distribution: Red hat
Posts: 2

Original Poster
Rep: Reputation: 0
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.
Old 04-28-2005, 06:39 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 08:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 12:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
/var/log/messages file jimval7 Linux - Security 5 07-22-2002 12:32 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration