SimpleLog-Swift 1.2.0

SimpleLog-Swift 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by SimpleLog-Swift.



  • By
  • Woocheol Park

SimpleLog-Swift

[![CI Status](http://img.shields.io/travis/Woocheol Park/SimpleLog-Swift.svg?style=flat)](https://travis-ci.org/Woocheol Park/SimpleLog-Swift)

Installation

SimpleLog-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SimpleLog-Swift"

Example

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()
...
     

Author

Woocheol Park, [email protected]

License

SimpleLog-Swift is available under the MIT license. See the LICENSE file for more info.