Light weight Swift console logger with sevirity levels and built in Emojis
Installation
Manually
Clone this git
Drag Logger.swift file into xCode
Select “Copy Files” from dialog
CocoaPods
Add the following line to your Podfile:
pod 'Emoji-Logger'
Carthage
Add the following line to your Cartfile:
github "alongenosar/Emoji-Logger"
Usage
Swift Examples.
Set Logger sevirity output level
Logger.logLevel = .info
Log with sevirity ‘info’
Logger.log(level:.info,"message","more information")
//You can also omit the level as .info is the default sevirity level
Logger.log("message","more information")
//Or
Logger.info("message","more information")
Emoji-Logger
Overview
Light weight Swift console logger with sevirity levels and built in Emojis
Installation
Manually
CocoaPods
Add the following line to your Podfile:
Carthage
Add the following line to your Cartfile:
Usage
Swift Examples.
Set Logger sevirity output level
Log with sevirity ‘info’
In the Debug window this will result with
Log with sevirity ‘warning’
In the Debug window this will result with:
Log with sevirity ‘error’
In the Debug window this will result with
Override message prefix regardless to its sevirity level
in debug area
Change level prefix
Mute/Unmute level: Suppresses logs from a certain level/s