Where to read kext printf messages?

Hi,


I'm new to kext programing and just started to learn it. I'm wondering where to read printf mesasges when load/unload a kext module. I'm using 10.13.2 high sierra and couldn't find kernel.log. The message doesn't show up in system.log and log stream command.


Thanks

Replies

On recent OS releases kernel messages are routed to the unified logging system (see WWDC 2016 Session 721 Unified Logging and Activity Tracing for more on this). You should be able to see them in the Console app and via the

log
command line tool.

In addition, you might be interested in my Unified Logging from the Kernel post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"