mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* printk redirection to a different file
@ 2004-04-12 10:39 John Que
  2004-04-12 10:47 ` Vladimir Saveliev
  2004-04-12 10:59 ` Eugene Teo
  0 siblings, 2 replies; 3+ messages in thread
From: John Que @ 2004-04-12 10:39 UTC (permalink / raw)
  To: linux-kernel

Hello,

I had added printk calls in a linux kernel module
for debug purposes.
Now , I want that this calls will be loggoed not to
/var/log/messages (this is where
the printk messages  are on RH9) but to a different file.

I am thinking of one main alternative:

create a debug_printk() method (by  copying the printk.c to debug_printk.c
, doing needed changes , and call debug_printk() method instead of
printk() methods where I want messages to a different log file).

Problem is that I do not see where in printk.c it
says that the messages will go to /var/log/messages.

(I assume that this is done with a logging system daemon).


any idea what to do ?
regards,
John

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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

* Re: printk redirection to a different file
  2004-04-12 10:39 printk redirection to a different file John Que
@ 2004-04-12 10:47 ` Vladimir Saveliev
  2004-04-12 10:59 ` Eugene Teo
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Saveliev @ 2004-04-12 10:47 UTC (permalink / raw)
  To: John Que; +Cc: linux-kernel

Hello

On Mon, 2004-04-12 at 14:39, John Que wrote:
> Hello,
> 
> I had added printk calls in a linux kernel module
> for debug purposes.
> Now , I want that this calls will be loggoed not to
> /var/log/messages (this is where
> the printk messages  are on RH9) but to a different file.
> 
> I am thinking of one main alternative:
> 
> create a debug_printk() method (by  copying the printk.c to debug_printk.c
> , doing needed changes , and call debug_printk() method instead of
> printk() methods where I want messages to a different log file).
> 
> Problem is that I do not see where in printk.c it
> says that the messages will go to /var/log/messages.
> 
> (I assume that this is done with a logging system daemon).
> 
> 
> any idea what to do ?
man syslog.conf

> regards,
> John
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


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

* Re: printk redirection to a different file
  2004-04-12 10:39 printk redirection to a different file John Que
  2004-04-12 10:47 ` Vladimir Saveliev
@ 2004-04-12 10:59 ` Eugene Teo
  1 sibling, 0 replies; 3+ messages in thread
From: Eugene Teo @ 2004-04-12 10:59 UTC (permalink / raw)
  To: John Que; +Cc: linux-kernel

Wrong mailing list.

Edit /etc/syslog.conf so that the messages will be forwarded to
a different file.

Eugene

<quote sender="John Que">
> Hello,
> 
> I had added printk calls in a linux kernel module
> for debug purposes.
> Now , I want that this calls will be loggoed not to
> /var/log/messages (this is where
> the printk messages  are on RH9) but to a different file.
> 
> I am thinking of one main alternative:
> 
> create a debug_printk() method (by  copying the printk.c to debug_printk.c
> , doing needed changes , and call debug_printk() method instead of
> printk() methods where I want messages to a different log file).
> 
> Problem is that I do not see where in printk.c it
> says that the messages will go to /var/log/messages.
> 
> (I assume that this is done with a logging system daemon).
> 
> 
> any idea what to do ?
> regards,
> John
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

-- 
Eugene TEO -  <eugeneteo%null!cc!uic!edu> <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }


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

end of thread, other threads:[~2004-04-12 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-12 10:39 printk redirection to a different file John Que
2004-04-12 10:47 ` Vladimir Saveliev
2004-04-12 10:59 ` Eugene Teo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®