Send output from NSLog() and println() (print() on Swift 2.0) to remote server like papertrail.
To send your log to papertrail, is very easy ;)
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
}
//AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[TMLog startWithHost:@"logs3.papertrailapp.com" port:48584];
return YES;
}