Linux system log output level-general Linux technology-Linux programming and kernel information. The following is a detailed description. The/proc/sys/kernel/printk file defines four numbers and runs:
Cat/proc/sys/kernel/printk
4 4 1 7
① Console Log Level: messages with a higher priority will be printed to the console.
② Default Message Log Level: this value is used to print messages with no priority.
③ Lowest console log level: the minimum value that may be set for the console log level.
④ Default Console: the default Log Level of the console.
Each line of text in the log buffer starts with a level mark. The smaller the level value, the higher the importance. The system defines eight message levels,
Level numbers from 0 to 7 are respectively fatal (KERN_EMESG), alert level (KERN_ALERT), critical level (KERN_CRIT ),
Error level (KERN_ERR), alarm level (KERN_WARN), Attention Level (KERN_NOTICE), notification level (KERN_INFO ),
Debugging level (KERN_DEBUG ).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service