Linux System log level

Source: Internet
Author: User
The/PROC/SYS/KERNEL/PRINTK file defines 4 numbers to view the log level:
Cat/proc/sys/kernel/printk
4 4 1 7
① Console Log level: Messages with a priority higher than this value will be printed to the console.
② default Message Log level: This value will be used to print messages that do not have a priority.
③ Lowest console Log level: the minimum value that may be set for the console log level.
④ Default console: The default value for the console log level.
Each line of the log buffer has a level tag at the beginning of the text, and the lower the level value the higher the priority.

The system defines 8 message levels, with the level numbers from 0 to 7, respectively:

Fatal Level (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),
Debug level (Kern_debug).

To modify the log level:

Echo 0 4 1 7 >/PROC/SYS/KERNEL/PRINTK

Linux System log level

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.