Swiftpack.co - darvintang/DVTLoger as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by darvintang.
darvintang/DVTLoger 2.0.0
打印日志的框架
⭐️ 1
🕓 9 weeks ago
iOS macOS
.package(url: "https://github.com/darvintang/DVTLoger.git", from: "2.0.0")

DVTLoger

VersionLicensePlatformSwift Package Manager

打印日志的框架,可以输出到控制台,导出日志文件

Loger.info("info", 100)
Loger.debug("debug", 101)
Loger.warning("warning", 102)
Loger.error("error", 103)
2022-09-02 10:56:47.475 [Example] ⚪ [AppDelegate.swift:18] [Main] application(_:didFinishLaunchingWithOptions:) => info 100 
2022-09-02 10:56:47.475 [Example] 🟢 [AppDelegate.swift:19] [Main] application(_:didFinishLaunchingWithOptions:) => debug 101 
2022-09-02 10:56:47.475 [Example] 🟡 [AppDelegate.swift:20] [Main] application(_:didFinishLaunchingWithOptions:) => warning 102 
2022-09-02 10:56:47.476 [Example] 🔴 [AppDelegate.swift:21] [Main] application(_:didFinishLaunchingWithOptions:) => error 103 

GitHub

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

Dependencies

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