Latest 0.0.2
Homepage https://github.com/Jaymon/CocoaLumberjill
License BSD
Platforms ios 9.0, requires ARC
Dependencies CocoaLumberjack
Authors

Wraps CocoaLumberjack to format logging and make it easy to send logs via email, among other things.

Configure the logs

#import "CocoaLumberjill.h"

// ...

[CocoaLumberjill configureWithLogLevel:@"all"]; // you can also use @"info", @"debug", etc.

You can change this at anytime and the logs from then on will obey the new rule, so, for example, you could have it usually be set to warn but if you see something wrong you could wire up a three finger long press or something that would change the log level to verbose.

Email the logs

#import "CocoaLumberjill.h"

@interface SomeViewController () <CocoaLumberjillEmailDelegate>
@end

@implementation ViewController

- (IBAction)handleSomeEvent:(id)sender
{
    NSString *subject = @"These are the logs";
    [[CocoaLumberjill emailInstance] composeEmailUsingController:self
                                                    toRecipients:@[@"[email protected]"]
                                                     withSubject:subject
                                                         andBody:@""];
}

@end

Installation

Use Cocoapods. To install it, simply add the following line to your Podfile:

pod "CocoaLumberjill"

License

Available under the BSD license (matching CocoaLumberjack). See the LICENSE file for more info.

Latest podspec

{
    "name": "CocoaLumberjill",
    "version": "0.0.2",
    "homepage": "https://github.com/Jaymon/CocoaLumberjill",
    "source": {
        "git": "https://github.com/Jaymon/CocoaLumberjill.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "license": "BSD",
    "summary": "Light wrapper around CocoaLumberjack",
    "authors": {
        "Jay Marcyes": "[email protected]"
    },
    "description": "Light wrapper around CocoaLumberjack to make changing log levels and emailing logs easier",
    "source_files": "CocoaLumberjill/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "CocoaLumberjack": []
    }
}

Pin It on Pinterest

Share This