Latest 0.0.2
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit

Log4OC is log tool for iOS 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用法一致


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": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "xiongan": "[email protected]"
    "platforms": {
        "ios": "6.0"
    "source": {
        "git": "",
        "tag": "0.0.2"
    "source_files": "LOGDemo/Classes/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true

Pin It on Pinterest

Share This