Latest 0.0.2
Homepage https://github.com/icoder20150719/Log4OC
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

Log4OC is log tool for iOS developer.you can use it as NSLog.

Log will be exported to file, the path is “/Documents/Log/” eg:access_2017_07_19_1.log

基本用法 Basic Usage

1、 it’s just like use NSLog;基本用法和NSLog用法一致

eg:DEBUGLog(@"DEBUGLog"); INFOLog(@"INFOLog"); WARNINGLog(@"WARNINGLog"); ERRORLog(@"ERRORLog");

2、In development, using DEBUGLog, setting the testLogLevel level, does not output DEBUG useless output in release mode 在开发中,使用DEBUGLog,设置testLogLevel级别可以在release模式不输出DEBUG无用的输出

3、You can use the log rollback feature testRollBack, which defaults to 10MB rollback and generates a new log file 可以使用日志回滚功能testRollBack,默认设置了10MB回滚,会产生一个新的日志文件

Usege with pod

pod "Log4OC"

Latest podspec

{
    "name": "Log4OC",
    "version": "0.0.2",
    "summary": "a log tool for iOS developer",
    "description": "a log tool for iOS developer that can redirect to file and  rollback with file size, used as NSLog",
    "homepage": "https://github.com/icoder20150719/Log4OC",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xiongan": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/icoder20150719/Log4OC.git",
        "tag": "0.0.2"
    },
    "source_files": "LOGDemo/Classes/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This