TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by FsThatOne.
To run the example project, clone the repo, and run pod install
from the Example directory first.
FSLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FSLogger"
// 默认输出等级为全部输出:
Fs("哈哈哈")
FsInfo("嘻嘻")
FsWarn("嘿嘿")
FsError("错啦!!!")
// outPut:
// <⚪️Verbose⚪️>Tests.testExample()[20]哈哈哈
// <🎾 Info 🎾>Tests.testExample()[21]嘻嘻
// <⚠️Warning⚠️>Tests.testExample()[22]嘿嘿
// <‼️ Error ‼️>Tests.testExample()[23]错啦!!!
// 可以设置输出等级,低于此等级的log会被屏蔽:
FSLog.logLevelShown = .warnning
Fs("哈哈哈")
FsInfo("嘻嘻")
FsWarn("嘿嘿")
FsError("错啦!!!")
// outPut:
// <⚠️Warning⚠️>Tests.testExample()[27]嘿嘿
// <‼️ Error ‼️>Tests.testExample()[28]错啦!!!
王正一, [email protected]
FSLogger is available under the MIT license. See the LICENSE file for more info.