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