Latest 0.1.0
Homepage https://github.com/GuessEver/log4objc
License MIT
Platforms ios 8.0
Authors

Logger for iOS

Install with CococaPods

First add Log4ObjC dependency in Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'Log4ObjC', '~> 0.1.0'
end

Then install dependencies

pod install

Quick Start

Just import dependency with

#import "Log4ObjC.h"

Basically, you can use one shared instance all the way in your program.

We create two macros log and logger refers to Log4ObjC.shared, so that you can easily use in your code

logger.info(@"This is a info log with 1 + 1 = %d", 2);

Log Levels

Besides logger.info, we defined a total of 5 levels to use in your code

  • trace
  • debug
  • info
  • warn
  • error

Future Plans

  • [ ] persistence
  • [ ] logs export/upload

Latest podspec

{
    "name": "Log4ObjC",
    "version": "0.1.0",
    "summary": "A simple logger for iOS written in objective-c.",
    "description": "A simple logger for iOS written in objective-cnLater, more functions like persistence, log upload, log view, etc. will be released.",
    "homepage": "https://github.com/GuessEver/log4objc",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "GuessEver": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GuessEver/log4objc.git",
        "tag": "v0.1.0"
    },
    "source_files": "Log4ObjC/**/*.{h,m}"
}

Pin It on Pinterest

Share This