First, open up your terminal and check your current log level:
"sysctl kernel.printk"
3 4 1 7
To change the log level type this command for temporary
"dmesg -n 1" not that, you have to use the root account
To make it permanently
"sudo nano /etc/sysctl.conf"
change the value of "kernel.printk = 3 4 1 7" to "kernel.printk = 1 2 1 2"
for Ubuntu also in folder /etc/sysctl.d/ you have to edit 10-console-messages.conf file to:
"kernel.printk = 1 2 1 2"
(Optional)
You can also disable log service "sudo systemctl disable rsyslog"
for more references head over to visit these link below:
https://askubuntu.com/questions/147555/over-current-condition-on-port-7-or-8
https://stackoverflow.com/questions/17358499/linux-how-to-disable-all-log/32553762
https://unix.stackexchange.com/questions/13019/description-of-kernel-printk-values
https://elinux.org/Debugging_by_printing
https://www.rsyslog.com/writing-specific-messages-to-a-file-and-discarding-them/
No comments:
Post a Comment