os_logfunctions are working in my kext, but it appears that
os_log_createis not working as expected. Whether I use
OS_LOG_DEFAULTor a custom subsystem/category from
logcommand does not show a subsystem or category attached to os_log messages from my kext. The log config settings do not seem to change the subsystem/category behavior.
As a workaround for what I want (filtering the log stream for my subsystem's messages), I found that I can pass
log streama predicate like
--predicate 'senderImagePath == "/Library/Extensions/MyKext.kext/Contents/MacOS/MyKext"'.
Filed bug report 28948441.
I don’t know what’s going on here, alas, but I wanted to thank you for posting follow ups and for filing that bug report.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"