question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac: Create log file for kext logging

See original GitHub issue

Kext logging of warnings\error should be recorded to a log file that gvfs diagnose can collect.

See #395 for related user-mode issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wilbakercommented, Dec 10, 2018

It seems pretty reasonable to me in general; interestingly, it has an “info” log level that by default doesn’t hit disk unless sometime later an error is also logged. So rather than logging everything all the time, it effectively retroactively enables verbose logging if an error occurs. Is that something we’d be interested in using?

That sounds like a pretty cool feature, I think it’s worth giving it a try.

The only downside I can see to the whole thing is that there’s no programmatic API for querying the log database, only the log CLI tool. This tool at least is fairly powerful and also supports a metadata-preserving (i.e. searchable, filterable, etc.) export/archival file format that e.g. Console.app supports reading; so that’s something that users could send back to us.

I think the log tool will be enough for VFS4G. We can update the gvfs diagnose verb to call the log CLI tool and then include the resulting export file in the zip file gvfs diagnose produces.

I suggest the following:

The approach you’ve outlined sounds good to me.

/ cc:@jrbriggs

0reactions
jrbriggscommented, Jan 14, 2019

@wilbaker I agree, I’m closing this out. Thank @pmj !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging in Kernel Extensions (KEXTs) on macOS
Logging in Kernel Extensions (KEXTs) on macOS · Best practices in user space, will bite you in kernel space. · Custom Logs ·...
Read more >
Where we can find log file of KEXTs in Mac OS?
I have created a sample kext used the below code to write a log. IOLog("scan\n");. I have loaded kext by running below command...
Read more >
Mac: Create log file for kext logging · Issue #396
Kext logging of warnings\error should be recorded to a log file that gvfs diagnose can collect. See #395 for related user-mode issue.
Read more >
man page kext_logging section 8
The kext management facilities of Mac OS X allow for logging of kext activity at all system levels, from the kernel to the...
Read more >
Logs from kext not seen in system.log on macOS 10.12
log file. Played with new console app and log stream command without any success. With unified logging introduced in 10.12, is there something...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found