I know that there is a way to get crashes and freezes for all applications. These files are placed in "/ Users / user / Library / Logs / DiagnosticReports". So I could get the version, time and name of the application.
But how to get the daemon / process crashes and freezes? I need to know exactly which demon was broken / hanged, and the time when this happened.
Is there also a way to get a single system (OSX) crash with the same information?
It would also be great to get some resource crashes / warnings: from memory or from disk space.
I need to do this programmatically.
On Windows, we can do this using the NotifyChangeEventLog () API. We can collect all this data using this method. He also notifies if something has happened.
source share