Skip to content
Simple library to send all NSLog messages to backend server
Objective-C Python Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
PANetworkLog
.gitignore
LICENSE
PANetworkLog.podspec
README.md
log_server.py

README.md

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.

You can’t perform that action at this time.