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
- This is a good helper for iOS engineer Debug.
- 這是一個iOS工程師Debug的好幫手。
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)
}
}