Swift Simple Console Logger
- File > Swift Packages > Add Package Dependency
- Add
https://github.com/InstaRobot/Logger.git
OR
Update dependencies
in Package.swift
dependencies: [
.package(url: "https://github.com/InstaRobot/Logger.git", .upToNextMajor(from: "1.0.0"))
]
import Logger
Logger.info("debug") // 🔵
Logger.error("debug") // 🔴
Logger.warning("debug") // 🟡
Logger.debug("debug") // 🟢