DaveWoodCom

XCGLogger

DaveWoodCom

A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.

AI 简介

XCGLogger 是一个面向 Swift 项目的轻量级调试日志框架,用于替代基础 print() 或 NSLog(),自动注入时间戳、文件名、函数名和行号等上下文信息,并支持控制台、文件及自定义输出目标。其核心特性包括多级别日志(debug/info/warning/error)、模块化设计(支持 Carthage/CocoaPods/SwiftPM 集成)、线程安全与可扩展的输出目标机制。适用于 iOS/macOS/tvOS/watchOS 平台的 Swift 应用开发,在调试阶段快速定位问题、追踪执行路径及生成结构化日志时尤为实用。

Swift
MIT License
4k
Stars
476
Forks
94
Watchers
40
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分60.04
默认分支main