Objective-C code for querying the syslog history (console log) for iOS and Mac OS X.