Simple, lightweight logging framework written in Swift
This library is derived from the GodEye project which can automaticly disply Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code. Just like god opened his eyes
- Log type support:
log
,warning
,error
. - Automaticly get log‘s file, line, function and thread.
- Allow multiple delegate listeners to monitor log behavior.
Log4G is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Log4G"
Or, if you’re using Carthage, add SwViewCapture to your Cartfile:
github "zixun/Log4G"
Log4G.log("message")
Log4G.warning("message")
Log4G.error("message")
Log4G.add(delegate: self)
And implement delegate of Log4GDelegate
:
func log4gDidRecord(with model:LogModel) {
//Some Monitor Action
}
Log4G.remove(delegate: self)
name: 陈奕龙
twitter: @zixun_
email: chenyl.exe@gmail.com
github: zixun
blog: 子循(SubCycle)
Log4G is available under the MIT license. See the LICENSE file for more info.