stdout or stderr file path on iPhone?
stdout or stderr file path on iPhone?
- Subject: stdout or stderr file path on iPhone?
- From: Manfred Schwind <email@hidden>
- Date: Tue, 30 Aug 2011 20:06:55 +0200
Hi,
is there a file path to the console output - visible in Xcode, e.g. when calling NSLog, I think it's stderr - on the iPhone?
I tried "/dev/stderr" or "/dev/fd/2" (and several other paths) but they do not work and if I get the directory contents of "/dev" they really don't exist on iOS.
stdout and stderr of the stdlib work fine, but they don't reveal their corresponding file paths (if there is any), if I see it right. But I really need a file path; a file handle or FILE struct does not help any further.
Background: I have a third party library (that I am not allowed to change) that logs to a file in Debug mode. I want to see this log output directly in the Xcode console, because transferring log files from the iPhone is too complicated. The library provides an API to set the file path (unfortunately not a file handle or something else).
Any ideas?
Regards,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
Lullaby - wicked awesome shutdown timer
Secrets - secure information storage
LittleSecrets - the encrypted notepad
Watchdog - baffle the curious
Sahara - sand in your pocket
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden