Swiftpack.co - William-Weng/WWLog as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by William-Weng.
William-Weng/WWLog 1.0.2
This is a good helper for iOS engineer Debug.
⭐️ 0
🕓 2 weeks ago
iOS
.package(url: "https://github.com/William-Weng/WWLog.git", from: "1.0.2")

WWLog

Swift-5.6 iOS-14.0 Swift Package Manager-SUCCESS LICENSE

Introduction - 簡介

  • This is a good helper for iOS engineer Debug.
  • 這是一個iOS工程師Debug的好幫手。

Installation with Swift Package Manager

dependencies: [
    .package(url: "https://github.com/William-Weng/WWLog.git", .upToNextMajor(from: "1.0.0"))
]

Function - 可用函式

函式 功能
configure(with:level:backgroundColor:) 設定一些初始值
log(_:level:) 印出Log文字

Example

import UIKit
import WWLog

final class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        _ = WWLog.shared
    }
    
    @IBAction func generalLog(_ sender: UIBarButtonItem) {
        WWLog.shared.log("高手專用")
    }
    
    @IBAction func detailLog(_ sender: UIBarButtonItem) {
        WWLog.shared.log("高高手專用", level: .detail)
    }
}

GitHub

link
Stars: 0
Last commit: 2 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics