I have an embedded device running embedded linux and I connect to it using a serial port. I am capturing the logs I need using cat proc/kmsg into a file in a background process. I would like to not see these messages in the terminal, but just use the log file.
How can I configure linux for this? If it's possible to configure all messages besides critical not to appear in the terminal that's even better.
Thanks, Michal