Hi all,
I’m testing my kext on macOS 10.12 and cannot find any log messages the kext outputs using IOLog function although the kext gets loaded successfully. On previous versions of Mac OS X starting with 10.8 IOLog outputs log messages to /var/log/system.log but on 10.12 it doesn’t happen. Does anyone know any changes related to IOLog() function functionality on macOS 10.12?
Thanks,
Alexander
On Sep 9, 2016, at 10:30 AM, Alexander Klyuev <Alexande...@winmagic.com> wrote:I’m testing my kext on macOS 10.12 and cannot find any log messages the kext outputs using IOLog function although the kext gets loaded successfully. On previous versions of Mac OS X starting with 10.8 IOLog outputs log messages to /var/log/system.log but on 10.12 it doesn’t happen. Does anyone know any changes related to IOLog() function functionality on macOS 10.12?
Hi Garth,
Thank you for the response.
I hoped to find those messages using Console app as usual but they are not there for some reason. I never experienced such a problem since I started KEXT development on Mac OS X 10.4.
Should they really go to system.log by default on macOS 10.12 Sierra without any changes in KEXT source code (meaning in using IOLog)? Any ideas regarding this?
Thank you,
Alexander
On Sep 9, 2016, at 1:15 PM, Alexander Klyuev <Alexande...@winmagic.com> wrote:Hi Garth,Thank you for the response.I hoped to find those messages using Console app as usual but they are not there for some reason. I never experienced such a problem since I started KEXT development on Mac OS X 10.4.Should they really go to system.log by default on macOS 10.12 Sierra without any changes in KEXT source code (meaning in using IOLog)? Any ideas regarding this?Thank you,Alexander
From: gcum...@apple.com [mailto:gcum...@apple.com]
Sent: Friday, September 09, 2016 2:00 PM
To: Alexander Klyuev
Cc: darwin-...@lists.apple.com
Subject: Re: IOLog() on 10.12Hi Alexander,There’s a new logging subsystem in macOS Sierra that was discussed at WWDC16. The session video goes into more details, but you should be able to find these messages using the greatly-improved Console app.—gcOn Sep 9, 2016, at 10:30 AM, Alexander Klyuev <Alexande...@winmagic.com> wrote:I’m testing my kext on macOS 10.12 and cannot find any log messages the kext outputs using IOLog function although the kext gets loaded successfully. On previous versions of Mac OS X starting with 10.8 IOLog outputs log messages to /var/log/system.log but on 10.12 it doesn’t happen. Does anyone know any changes related to IOLog() function functionality on macOS 10.12?______________
Garth Cummings
Apple Developer Technical Support gcum...@apple.com
http://developer.apple.com/support/resources/technical-support.html
Garth Cummings Sr. Software Engineer Apple Developer Technical Support "The last good thing written in C was Franz Schubert's Symphony No. 9." —Erwin Dieterich | 1 Infinite Loop, MS 56-DTS Cupertino, CA 95014 408-974-7711 phone 408-974-8101 fax |
Hi Garth,
Thank you. Yes, I have found messages sent by my driver only in Console app’s <device> folder. However I noticed that driver messages go there not reliably. First of all looks like some messages don’t reach target stream at all. Secondly, search by key word in Console app’s <device> folder may not show messages sent in previous system sessions (before number of last restarts). So looks like they don’t survive restart some times.
I still keep this testing.
Thanks,
Alexander
Hi there,
Thanks for additional info. I’ll give it a try.
- Alexander
From: vishal...@gmail.com [mailto:vishal...@gmail.com]
Sent: Friday, September 23, 2016 12:08 AM
To: darwin-drivers
Cc: gcum...@apple.com; darwin-...@lists.apple.com; Alexander Klyuev
Subject: Re: IOLog() on 10.12
I am now using vprintf instead of IOLogv for debug messages which seems to be working. Not sure what's happening to IOLogv log msgs though.
On Saturday, September 10, 2016 at 1:55:14 AM UTC+5:30, Alexander Klyuev wrote: