"Leonidas ." <leonidas137@xxxxxxxxx> writes: > Hi List, > > Kernel maintains a circular log buffer and output of printk is stored > in that log buffer, > this log buffer survives reboots also. Hmm. While files like /var/log/messages survive reboot, the contents of the RAM where the printk ring buffer are not preserved across reboots, as far as I know. > Is it possible to create a seperate file or dir inside /var/log for > logging only my kernel > modules messages? What syslog daemon do you have? The answers for a regular syslog daemon and for syslog-ng would be different. On second thought, the answer to my question begins a conversation that isn't really on topic in kernelnewbies. > On my machine I see many files and dir inside /var/log/. Is it doable > from a module? Userland tools usually decide what to do with the messages coming from the kernel. There are lots of ways besides printk of getting messages from the kernel into a file, though. The debugfs feature is one example. -- Ed Cashin <ecashin@xxxxxxxxxx> http://noserose.net/e/ http://www.coraid.com/ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ