nibdevn / NibLogger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NibLogger

Swift GitHub license

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.

About

License:MIT License


Languages

Language:Ruby 50.9%Language:Swift 49.1%