HTZDebugLog 1.0.0

HTZDebugLog 1.0.0

Maintained by Hituzi Ando.



  • By
  • Hituzi Ando

HTZDebugLog

Very simple logger.

Require

  • iOS 9.3+
  • macOS 10.10+
  • Xcode 11.1+
  • Swift 5

Installation

CocoaPods

HTZDebugLog is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "HTZDebugLog"

Carthage

You can use Carthage to install HTZDebugLog by adding it to your Cartfile:

github "HituziANDO/HTZDebugLog"

If you use Carthage to build your dependencies, make sure you have added HTZDebugLog.framework to the "Frameworks, Libraries, and Embedded Content" section of your target, and have included them in your Carthage framework copying build phase.

Getting Started

  1. Import

    import HTZDebugLog
  2. Set log level

    Write following code in AppDelegate application(_:didFinishLaunchingWithOptions:) method.

    HTZDebugLog.level = .debug

    If you want to disable the debug log, set .off to the level.

    HTZDebugLog.level = .off
  3. Output log

    HTZDebugLog.d("Debug log")
    HTZDebugLog.i("Info log")
    HTZDebugLog.w("Warn log")
    HTZDebugLog.e("Error log")

Sample Log