I'm looking for a way to have better logging for my iOS app. Right now, I have all of my own logging reported to a log file that the client can view. However, my information leaves out a lot of valuable data. I want to be able to hook onto the system logs to report those as well.
When i'm debugging with a device attatched to my computer, I use
idevicesyslog | grep MyAppName
Which gives me most, if not all of the information that I need.
I can see things like
kernel[0] : memorystatus: freezing (general) pid 6331 [MyAppName]...skipped (too much shared memory)
(something I never would have been able to find if I didn't have the system log for that device available to me)
However I don't know how to get that propegated to my client's log file so that when they need to report a bug, they can supply a proper log.
I'm pretty sure I would do this using `asl.h`, but from what I've read online it only would support querying for existing logs, not adding a delegate for when a new log message comes through.