Latest 1.1.3
Homepage https://github.com/siuying/IGWebLogger
License MIT
Platforms ios 5.0, osx 10.8, requires ARC
Authors

IGWebLogger

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

Install

The best way to use IGWebLogger is via CocoaPods. Add following line in your Podfile:

pod "IGWebLogger", "~> 0.2.0"

Usage

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)

Dependency

  • CocoaLumberjack – A fast & simple, yet powerful & flexible logging framework
  • CocoaHTTPServer – use the HEAD version which has latest WebSocket and ARC supports

Latest podspec

{
    "name": "IGDigest",
    "version": "1.1.3",
    "summary": "Provides convenient wrappers for popular message digest formats (MD5, SHA1 and SHA256) and HMAC (Hash-based message authentication code).",
    "homepage": "https://github.com/siuying/IGWebLogger",
    "authors": {
        "Francis Chong": "[email protected]"
    },
    "license": "MIT",
    "source": {
        "git": "https://github.com/siuying/IGDigest.git",
        "tag": "1.1.3"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "5.0",
        "osx": "10.8"
    },
    "source_files": [
        "IGDigest/Digest/*.{m,h}",
        "IGDigest/HMAC/*.{m,h}"
    ]
}

Pin It on Pinterest

Share This