Swiftpack.co - William-Weng/WWPrint 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/WWPrint 1.2.0
The number of lines that can be printed + the printing method of the method name => convenient for debugging.
⭐️ 0
🕓 6 weeks ago
iOS
.package(url: "https://github.com/William-Weng/WWPrint.git", from: "1.2.0")

WWPrint

Swift-5.0 iOS-14.0 TAG Swift Package Manager-SUCCESS LICENSE

The number of lines that can be printed + the printing method of the method name => convenient for debugging

可以印出行數 + 方法名稱的Print方法 / WWLogger => 方便Debug

Installation with Swift Package Manager

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

Example

import UIKit
import WWPrint

final class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let message = wwMessage("iOS好棒棒")
        let logger = WWLogger.build()
        
        print(message)
        wwPrint("Hello World!!!")
        
        logger?.message("debug", level: .debug)
        logger?.message("info", level: .info)
        logger?.message("notice", level: .notice)
        logger?.message("warning", level: .warning)
        logger?.message("critical", level: .critical)
    }
}

GitHub

link
Stars: 0
Last commit: 6 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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