XCGLoggerSwift 日志框架
XCGLogger 是为 Swift 语言编写的日志框架。
示例代码:
import XCGLogger let log = XCGLogger.defaultInstance() log.verbose("A verbose message, usually useful when working on a specific problem") log.debug("A debug message") log.info("An info message, probably useful to power users looking in console.app") log.error("An error occurred, but it's recoverable, just info about what happened") log.severe("A severe error occurred, we are likely about to crash now")
评论