Skip to content

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

License

Notifications You must be signed in to change notification settings

fnazarios/TMLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published