some questions about log level
Mulyadi Santosa
mulyadi.santosa at gmail.com
Mon Dec 12 12:22:53 EST 2011
On Mon, Dec 12, 2011 at 21:18, loody <miloody at gmail.com> wrote:
> hi all:
> my questions are below:
> 1. Can I temporarily let kernel message show in stdout?
> I google some key word as "console_loglevel" and I found following methods:
> a. echo 8 > /proc/sys/kernel/printk
> b. write a simple program which calling "klogctl(8, NULL, level)"
> Then I purposely connect/disconnect USB, but my console keep quiet.
> But dmesg shows connect/disconnect messages.
Perhaps this document could explain the basics better than me:
http://lxr.linux.no/#linux+v3.1.5/Documentation/sysctl/kernel.txt#L405
Hope that helps...
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list