Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 743 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 743 Bytes

TMLog

Send output from NSLog() and println() (print() on Swift 2.0) to remote server like papertrail.

Setup

To send your log to papertrail, is very easy ;)

Install

To use TMLog, you just add pod 'TMLog' to your Podfile and import the library

import TMLog

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    TMLog.startWith("logs3.papertrailapp.com", port: 48584)
    return true
}

In Objective-C:

//AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [TMLog startWithHost:@"logs3.papertrailapp.com" port:48584];
    return YES;
}