CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

ShakeLog 0.0.2

ShakeLog 0.0.2

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

Maintained by Andrew Skrypnyk.



 
Depends on:
Concepter_Log~> 1.0
AEConsole~> 0.3.0
 

ShakeLog 0.0.2

  • By
  • Andrew Skrypnik

ShakeLog

[](https://travis-ci.org/Andrew Skrypnik/ShakeLog)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "ShakeLog"
import ShakeLog

add keys to Info.plist

<key>AELog</key>
<dict>
<key>Enabled</key>
<true/>
<key>Template</key>
<string>{message}</string>
</dict>
<key>AEConsole</key>
<dict>
<key>Enabled</key>
<true/>
</dict>

add -DSHAKELOGSHOW key to Build Settings->Other Swift Flags -> Debug to disable logs in Release builds

#if SHAKELOGSHOW
    //... aelog()
#endif

then finish setup

Log.launch(with: UIApplicationDelegate)
Log.shared.minLevel = .debug

Log.shared.trace("trace", false)
Log.shared.debug("debug", true)
Log.shared.info("info", "true")
Log.shared.warning("warning", 10)
Log.shared.error("error", ["key": "value"])

Author

Andrew Skrypnik, [email protected]

Dependency

Log: https://github.com/delba/Log

AEConsole: https://github.com/tadija/AEConsole

License

ShakeLog is available under the MIT license. See the LICENSE file for more info.