How to disable all logs on lede?

Guys, I want to disable all logs on lede to do some performance testing on the router. I need to do some comparisons with both logs on and off. Is it possible to disable all? If so, what is the process like?

The simplest is likely to run /etc/init.d/log stop.

1 Like

Thanks, this command disabled the system log, but which command disables the kernel log?

https://wiki.openwrt.org/doc/recipes/terminate.console.on.serial#first_method_no_need_re-build_the_kernel

Or use this command:

root@LEDE:~# cat /proc/sys/kernel/printk
7       4       1       7
root@LEDE:~# echo 0 4 1 7 > /proc/sys/kernel/printk
root@LEDE:~# cat /proc/sys/kernel/printk
0       4       1       7
root@LEDE:~#
1 Like