Skip to content

ConcepterDev/ShakeLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.