Write the kernel messages to stdout. More information: https://keith.github.io/xcode-man-pages/dmesg.8.html.
stdout
dmesg
dmesg | grep -i memory
dmesg | less