kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Kernel log mechanism: How to log messages in a different file
@ 2011-06-25 13:40 amit mehta
  2011-06-25 13:49 ` Bruce Rowen
  2011-06-25 20:05 ` Mulyadi Santosa
  0 siblings, 2 replies; 6+ messages in thread
From: amit mehta @ 2011-06-25 13:40 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I've written some kernel modules using kprobes infrastructure
to grab some more information on network packets. I've lots of
printk which by default show up in syslog file(/var/log/messages),
I was wondering if there are some method to redirect my printkS
to appear in somewhere else(say /var/log/netlog).
On a busy system, it gets little cluttered with other logs. Of-course
i can grep for my own custom messages but it would be lot more
convenient if i can redirect my messages in  a separate log file.

Considering above can be done, then what about dmesg ?
will they still show up in dmesg output ?

Regards,
Amit

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-30  5:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-25 13:40 Kernel log mechanism: How to log messages in a different file amit mehta
2011-06-25 13:49 ` Bruce Rowen
2011-06-25 15:06   ` amit mehta
2011-06-25 20:05 ` Mulyadi Santosa
2011-06-27 16:57   ` Ramesh.P
2011-06-30  5:12     ` अनुज

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).