[BREAKGLASS] Append-only mirror of github.com/signalapp/PastelogKit
Go to file
2016-12-05 22:48:53 +01:00
src Update to Cocoapods 3.0 2016-12-05 22:48:53 +01:00
.gitignore Initial commit 2014-07-19 07:04:46 -10:00
LICENSE Initial commit 2014-07-19 07:04:46 -10:00
PastelogKit.podspec Update to Cocoapods 3.0 2016-12-05 22:48:53 +01:00
README.md Update README.md 2014-07-23 17:41:27 -10:00

PastelogKit

A simple library that provides an easy fragment allowing users to throw debug logs in a pastebin (currently gist) online, backed by CocoaLumberjack.

Usage

PasteLogKit is really easy to use. Import PastelogKit.h to your source file.

typedef void (^successBlock)(NSError *error, NSString *urlString);

[Pastelog submitLogsWithCompletion:^(NSError *error, *urlString){
  if(error){
    // Process the error;
  } else{
    // email, copy or do something with the gist url
  }
}];

If you want to use a specific logger,

+(void)submitLogsWithCompletion:(successBlock)block forFileLogger:(DDFileLogger*)fileLogger;

Installation

In your Podfile

pod 'PastelogKit', '~> 1.0'

License

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html