Simple iOS library to send all NSLog messages (stderr output) to backend server. Simple server to display logs is included in the repo.
PANetworkLog is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PANetworkLog'
##Usage
NSString *url = [NSString stringWithFormat:@"http://example.com/logs?device_id=%@", [UIDevice currentDevice].identifierForVendor.UUIDString];
[[PANetworkLog sharedInstance] forwardLogsToURL:url];
To run the example project, clone the repo, and run pod install
from the Example directory first.
Don't forget to disable NSAppTransportSecurity
if your server is not on https.
To run included server, type
sudo python log_server.py
Pavel Alexeev, [email protected]
PANetworkLog is available under the MIT license. See the LICENSE file for more info.