RSLog 0.1.0

RSLog 0.1.0

Roman维护。



RSLog 0.1.0

  • 作者:
  • m3rkus

RSLog

使用Swift实现的一个轻量级线程安全的日志框架。

特性

  • emoji和文本日志级别,便于视觉识别
  • 记录文件名和行号
  • 记录函数名
  • 三个日志级别:Info(信息)、Warning(警告)、Error(错误)
  • 仅适用于调试构建

示例输出

要求

  • iOS 8或更高版本。
  • Xcode 9或更高版本。
  • Swift 4.0或更高版本。

安装

CocoaPods

pod 'RSLog'

使用方法

// Shortcut for the log singleton
let log = RSLog.shared

log.info("This is an info message")
log.warning("This is a warning message")
log.error("This is an error message")