Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.33 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.33 KB

PANetworkLog

Version License Platform

Simple iOS library to send all NSLog messages (stderr output) to backend server. Simple server to display logs is included in the repo.

Installation

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 

Author

Pavel Alexeev, pasha.alexeev@gmail.com

License

PANetworkLog is available under the MIT license. See the LICENSE file for more info.