NibLogger
Summary
Requirements
- Swift 4.2
- iOS 10.0+
Usage
Setting Detail Log
import NibLogger
LOG.shared.isDetailLog = true
DEBUG
LOG.shared.isDetailLog = true
LOG.DEBUG("Debug Log")
LOG.shared.isDetailLog = false
LOG.DEBUG("Debug Log")
- Print Console
🟢 [DEBUG][File.swift -> line: line Number]: Debug Log🟢 [DEBUG]: Debug Log
INFO
LOG.shared.isDetailLog = true
LOG.INFO("Info Log")
LOG.shared.isDetailLog = false
LOG.INFO("Info Log")
- Print Console
🔵 [INFO][File.swift -> line: line Number]: Info Log🔵 [INFO]: Info Log
WARN
LOG.shared.isDetailLog = true
LOG.WARN("Warn Log")
LOG.shared.isDetailLog = false
LOG.WARN("Warn Log")
- Print Console
🟡 [WARN][File.swift -> line: line Number]: Warn Log🟡 [WARN]: Warn Log
ERROR
LOG.shared.isDetailLog = true
LOG.ERROR("Error Log")
LOG.shared.isDetailLog = false
LOG.ERROR("Error Log")
- Print Console
🔴 [ERROR][File.swift -> line: line Number]: Error Log🔴 [ERROR]: Error Log
TAG
LOG.shared.isDetailLog = true
LOG.TAG(tag: "Some Tag", "Tag Log")
LOG.shared.isDetailLog = false
LOG.TAG(tag: "Some Tag", "Tag Log")
- Print Console
[Some Tag][ViewController.swift -> line: 20]: Tag Log [Some Tag]: Tag Log
Installation
NibLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NibLogger', :tag => '1.2.0', :git => 'https://github.com/nibdevn/NibLogger'
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
License
These works are available under the MIT license. See the LICENSE file for more info.