TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Aug 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by SimpleLog-Swift.
[](https://travis-ci.org/Woocheol Park/SimpleLog-Swift)
SimpleLog-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SimpleLog-Swift"
import SimpleLog_Swift
#if DEBUG
Logging.isRunning = true
#else
Logging.isRunning = false
#endif
// Print command line
// | 📘 DEBUG | FILE: ExampleViewController.swift, FUNCTION: exampleFunction, LINE: 30
// ---------------------------------------------------------
Logging.d()
// Print command line
// | 📘 DEBUG | FILE: ExampleViewController.swift, FUNCTION: exampleFunction, LINE: 30
// ---------------------------------------------------------
// Variable Type -> [String], Value -> [description]
// ---------------------------------------------------------
Logging.d(description)
// Print command line
// | 📘 DEBUG | FILE: ExampleViewController.swift, FUNCTION: exampleFunction, LINE: 30
// ---------------------------------------------------------
// | 🗄 Array | Info -> [...], Size -> [...]
// | 🔓 INDEX | 0
// ---------------------------------------------------------
// Example
// ---------------------------------------------------------
// Variable Name -> [id], Variable Type -> [Optional<Int>], Value -> [Optional(123)]
// ---------------------------------------------------------
// | 🔓 INDEX | 1
// ---------------------------------------------------------
// Example
// ---------------------------------------------------------
// Variable Name -> [id], Variable Type -> [Optional<Int>], Value -> [Optional(456)]
// ---------------------------------------------------------
Logging.d(Array<Example> as Array<Any>)
Logging.i()
...
Logging.w()
...
Logging.e()
...
Woocheol Park, [email protected]
SimpleLog-Swift is available under the MIT license. See the LICENSE file for more info.