Latest 1.0
Homepage https://github.com/WangWenzhuang/ZKLog
License MIT
Platforms ios 8.0
Authors

(logo)

build
CocoaPods
license
platform

实现功能

  • [x] 情景日志输出
  • [x] 自定义日志前缀

运行环境

  • iOS 8.0 +
  • Xcode 8 +
  • Swift 4.0 +

安装

CocoaPods

你可以使用 CocoaPods 安装 ZKLog,在你的 Podfile 中添加:

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
    pod 'ZKLog'
end

快速使用

导入 ZKLog

import ZKLog

使用

ZKLog.verbose("verbose")
ZKLog.debug("debug")
ZKLog.info("info")
ZKLog.warn("warn")
ZKLog.error("error")

输出

[verbose] – 16:39:15.460: verbose

[debug] – 16:39:15.471: debug

[info] – 16:39:15.471: info

[warn] – 16:39:15.471: warn

[error] – 16:39:15.471: error

Latest podspec

{
    "name": "ZKLog",
    "version": "1.0",
    "platforms": {
        "ios": "8.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "iOS App u65e5u5fd7u6846u67b6",
    "homepage": "https://github.com/WangWenzhuang/ZKLog",
    "authors": {
        "WangWenzhuang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/WangWenzhuang/ZKLog.git",
        "tag": "1.0"
    },
    "description": "ZKLog u662fu4e00u4e2au65e5u5fd7u6846u67b6u3002",
    "source_files": "ZKLog/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This