Write the kernel messages to stdout. More information: https://www.manpagez.com/man/8/dmesg/.
stdout
dmesg
dmesg | grep -i memory
dmesg | less