LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-22-2005, 11:34 AM   #1
jyotika_b83
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, 02:33 AM   #2
freakyg
Member
 
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, 03:12 AM   #3
jyotika_b83
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, 07:39 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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


Reply


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 03:31 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 09:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 01:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 11:08 AM
/var/log/messages file jimval7 Linux - Security 5 07-22-2002 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 PM.

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