@eskimo yep. Info and Debug options are enabled in Action.
We dug deeper and found that #include <os/log.h> in our Driver is DriverKit/usr/include/os/log.h not macOS's MacOSX.sdk/usr/include/os/log.h.
So DriverKit's version has very limited API and declares following macro:
#define os_log(log, format, ...) __extension__({ \
os_log_t _log_tmp = (log); \
os_log_type_t _type_tmp = OS_LOG_TYPE_DEFAULT; \
if (os_log_type_enabled(_log_tmp, _type_tmp)) { \
OS_LOG_CALL_WITH_FORMAT(_os_log_impl, \
(&__dso_handle, _log_tmp, _type_tmp), format, ##__VA_ARGS__); \
} \
})
We created a new macro w/o check if (os_log_type_enabled(_log_tmp, _type_tmp)) and now see our logs in Console for kernel process.
So it looks like OS_LOG_TYPE_DEFAULT is not enabled. What should we do to enable it?