Latest 0.2
Homepage https://github.com/cbess/Timber
License MIT
Authors

iOS and Mac app logging made easy.

Install

Cocoapods: pod 'Timber'

#import <Timber/Timber.h>

Usage

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    CBTDebugMark();

    [CBTimber setLogTag:@"test" forUsername:@"christopher.bess"];
    //[CBTimber setLogTag:@"test one" forUsername:nil]; // overrides any tags specified by a username

    CBTLogDebugt(@"test tag", @"simple test log: %@", @7);

    return YES;
}

Macros

CBTLog(Level, Tag, Message, …)
CBTDebugCode(BLOCK)
CBTDebugMark()

Log macros

CBTLogVerbose(MSG, …)
CBTLogDebug(MSG, …)
CBTLogInfo(MSG, …)
CBTLogWarn(MSG, …)
CBTLogError(MSG, …)
CBTLogDebugError(NSError)

Log macros w/ tagging

CBTLogVerboset(TAG, MSG, …)
CBTLogDebugt(TAG, MSG, …)
CBTLogInfot(TAG, MSG, …)
CBTLogWarnt(TAG, MSG, …)
CBTLogErrort(TAG, MSG, …)

Notes

See CBTimber.h for more details.

Latest podspec

{
    "name": "Timber",
    "version": "0.2",
    "summary": "iOS and Mac app logging made easy. Batteries Included.",
    "description": "                   A logging library that provides a powerful and easy to use API.n                   Works on Mac and iOS platforms.n",
    "homepage": "https://github.com/cbess/Timber",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Christopher Bess": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cbess/Timber.git",
        "tag": "v0.2"
    },
    "source_files": "Timber/Classes/CBTimber/*.{h,m}",
    "requires_arc": false
}

Pin It on Pinterest

Share This