Latest 1.0.0
Homepage https://github.com/hons82/THSlackLogger
License MIT
Platforms ios 7.0, osx 10.9, requires ARC
Dependencies AFNetworking, CocoaLumberjack
Authors

Build Status
Pod Version
Pod Platform
Pod License
Coverage Status

A Logger for CocoaLumberjack that writes to a custom Slack Channel

Installation

CocoaPods

Install with CocoaPods by adding the following to your Podfile:

Objective-C

platform :ios, '7.0'
pod 'THSlackLogger', '~> 1.0.0'

Swift

platform :ios, '8.0'
use_frameworks!
pod 'THSlackLogger', '~> 1.0.0'

Note: We follow http://semver.org for versioning the public API.

Usage

This is a sample initialization taken from the ExampleProject.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [DDLog addLogger:[DDTTYLogger sharedInstance]]; // TTY = Xcode console
    [DDLog addLogger:[DDASLLogger sharedInstance]]; // ASL = Apple System Logs

    /*
     First method is to directly add the URL at first init
     */
    //[DDLog addLogger:[THSlackLogger initWithWebhookURL:[NSURL URLWithString:@"https://hooks.slack.com/services/xxx/xxx/xxx"]]];
    /*
     ...if not, then add a Slack.plist file to your main bundle including a key named "webHookUrl" with the URL as String value
     */
    [DDLog addLogger:[THSlackLogger sharedInstance]];
    return YES;
}

Contributions

…are really welcome. If you have an idea just fork the library change it and if its useful for others and not affecting the functionality of the library for other users I’ll insert it

License

Source code of this project is available under the standard MIT license. Please see the license file.

Latest podspec

{
    "name": "THSlackLogger",
    "version": "1.0.0",
    "summary": "Cocoalumberjack logger to Slack",
    "description": "A Logger for [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack) that writes to a custom Slack Channel",
    "homepage": "https://github.com/hons82/THSlackLogger",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Hannes Tribus": "[email protected]"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/hons82/THSlackLogger.git",
        "tag": "1.0.0"
    },
    "source_files": "THSlackLogger/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 3.0.4"
        ],
        "CocoaLumberjack": [
            "~> 2.2.0"
        ]
    }
}

Pin It on Pinterest

Share This