Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 1.73 KB

File metadata and controls

76 lines (55 loc) · 1.73 KB

ShakeLog

[CI Status](https://travis-ci.org/Andrew Skrypnik/ShakeLog) Version License Platform

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, anarh93@gmail.com

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.