I am new to DriverKit and have been experimenting with the DriverKit sample code as well as my own test driver. My current task is learning how to observe debug messages from the driver's os_log invocations. This has been frustrating because at one point I was able to see my driver's debug messages in the Console app, but now they are not appearing no matter what I try, and I have no idea what changed.
This is happening with both my own driver and Apple's samples, so I suspect the drivers are instantiating correctly -- request:didFinishWithResult: indicates success -- and calling os_log in Start, but I am just not able to see the messages in Console for some reason. I have both "Include Info Messages" and "Include Debug Messages" checked in Console's Action menu.
My problem is very similar to this previous post, but I tried the author's suggested tweak to the os_log macro and it didn't help me.
My specific questions are:
- Why does DriverKit have its own
log.hthat is missing significant functionality? In particular, theos_log_typeenum contains onlyOS_LOG_TYPE_DEFAULT, which means I cannot adjust the severity level of my logs. In particular, I cannot log a message at the error level (OS_LOG_TYPE_ERROR). This would be helpful in eliminating the possibility that my problem is due to some kind of severity level filtering. - Is there anything else I can do to troubleshoot this problem? I have exhausted all my troubleshooting ideas.
Thanks