Latest 0.0.3
Homepage https://github.com/federicocappelli/FCLogger
License MIT
Platforms ios 8.0
Dependencies CocoaLumberjack
Frameworks UIKit
Authors

FCLogger is a DDAbstractLogger implementation that allow all the CocoaLumberjack logs to be displayed inside the app, supports custom colors (Like XCodeColors).

Screenshots:

Screenshot 1

Install

Cocoapod

Add the pod to your podfile

pod 'FCLogger'

Manual

Import the files in your project

FCLogger.h
FCLogger.m

How to use:

Have a look to the FCLoggerSample app provided.

Steps

  • Setup Cocoalumberjack as usual
  • Import FCLogger
     #import <FCLogger/FCLogger.h>
  • Create your own UITextView in any part of your app
  • Create and configure the logger:
// create the FC logger
self.fcLogger = [[FCLogger alloc] init];

//assign a standard UITextView
self.fcLogger.textView = self.textView;

//enable auto scroll
self.fcLogger.autoScrollsToBottom = YES;

//enable colors support
self.fcLogger.colorsEnabled = YES;

//add logger to CocoaLumberjack
[DDLog addLogger:self.fcLogger];

//set custom color for specific log flag
[self.fcLogger setLogColor:[UIColor blueColor] forFlag:DDLogFlagDebug];
  • Use Cocoalumberjack as usual
DDLogDebug(@"Test debug log");
DDLogError(@"Test error log");

Latest podspec

{
    "name": "FCLogger",
    "version": "0.0.3",
    "summary": "A DDAbstractLogger implementation, shows CocoaLumberjack logs in a UITextView",
    "description": "FCLogger is a DDAbstractLogger implementation that allow all the CocoaLumberjack logs to be displayed inside the app, supports custom colors (Like XCodeColors).",
    "homepage": "https://github.com/federicocappelli/FCLogger",
    "screenshots": "https://github.com/federicocappelli/FCLogger/raw/master/Example/Screenshots/fcLogger_sc1.png?raw=true",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Federico Cappelli": "[email protected]"
    },
    "source": {
        "git": "https://github.com/federicocappelli/FCLogger.git",
        "tag": "0.0.3"
    },
    "social_media_url": "https://twitter.com/federicokappe",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FCLogger/Classes/**/*",
    "frameworks": "UIKit",
    "dependencies": {
        "CocoaLumberjack": []
    }
}

Pin It on Pinterest

Share This