Skip to content

Pash237/PANetworkLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple library to send all NSLog messages to backend server

Resources

License

Stars

Watchers

Forks

Packages

No packages published