项目作者: MZC0829

项目描述 :
Custom log output. Contain file, function, line and time.
高级语言: Swift
项目地址: git://github.com/MZC0829/MLog.git
创建时间: 2017-11-21T11:53:20Z
项目社区:https://github.com/MZC0829/MLog

开源协议:MIT License

下载


MLog

Custom log output. Contain file, function, line and time.

Cocoapods

1. Add the following line to your Podfile:

  1. platform :ios, '9.0'
  2. target 'YourIosApps' do
  3. use_frameworks!
  4. pod 'MLog', '~> 1.1.0'
  5. end

2. Then, run the following command:

  1. $ pod install

Carthage

1、run the following command:

  1. $ touch Cartfile

2、Add the following line to your Cartfile:

  1. github "MZC0829/MLog"

3、run the following command:

  1. $ carthage update

Requirements

>

  • iOS 9.0+
  • swift 3+ and swift 4

Usage

- just like

  1. MLog("I am a MLog")

- output

  1. ***** log start *****
  2. 2017-11-21 20:57:57
  3. fileName: ViewController.swift -> line: 18 -> func: viewDidLoad()
  4. I am a MLog
  5. ***** log end *****