CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Francis Chong.
| Depends on: | |
| CocoaLumberjack | >= 0 |
| CocoaHTTPServer | ~> 2.3 |
IGWebLogger allows you to view your iOS app logs over web browser in realtime.
It is a CocoaLumberjack logger which prints log over websocket connection.
Status: Experimental
IGWebLogger needs latest version of CocoaHTTPServer which has latest WebSocket and ARC supports. If you
use cocoapods, you will need to include following pods in your Podfile:
pod "IGWebLogger", "~> 0.2.0"First, start the web socket server in AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// setup logger
[DDLog addLogger:[IGWebLogger sharedInstance]];
// setup HTTP server
self.httpServer = [IGWebLogger httpServer];
NSError *error;
if(![self.httpServer start:&error])
{
DDLogError(@"Error starting HTTP Server: %@", error);
}
return YES;
}Use CocoaLumberjack as usual to add logs.
DDLogError(@"Broken sprocket detected!");
DDLogVerbose(@"User selected file:%@ withSize:%u", filePath, fileSize);
Then connects your browser to http://localhost:8888 to view the logs realtime. (If you run this on real device, replace localhost with the device name such as http://Meteor.local:8888)