TestsTested | β |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | β |
Maintained by Alvaro Royo.
ARConsole lets you know in real time your application logs. Itβs easy. Read bellow.
You can get it in CocoaPods or like a git submodule.
Pod "ARConsole"
First initialize the instance of ARPrint:
_ = ARPrint.sharedInstance
ARPrint init by itself when you call a print function.
To use it you have this public functions:
public func println(_ message: String, tag:String = "", colour:UIColor = ARPrint.defaultColor)
Default color: Green
Default tag: β
public func printError(_ message: String)
public func printWarning(_ message: String)
public func printDebug(_ message: String)
You can Start / Stop recording whatever you want using this property:
ARPrint.sharedInstance.isRecording = true
ARPrint.sharedInstance.isRecording = false
You can show the console at any moment using this function:
ARPrint.sharedInstance.showConsole()
Also you can show the console pressing three times the volume buttons If you want to disable this option you can use
ARPrint.sharedInstance.showWithVolume = false
Default value: true
DISABLE IT IN RELEASE
println( "Any Message", tag:"Service", colour:UIColor.blue)
printError("Checkout Alerts")
printWarning("Background Mode Starts")
printDebug("Update Alerts")