Latest 0.3.0
Homepage https://github.com/zixun/Log4G
License MIT
Platforms ios 8.0
Authors

Version
License
Platform
Carthage compatible

Simple, lightweight logging framework written in Swift

Context

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

Features

  • [x] Log type support: log,warning,error.
  • [x] Automaticly get log‘s file, line, function and thread.
  • [x] Allow multiple delegate listeners to monitor log behavior.

Installation

CocoaPods

Log4G is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Log4G"

Carthage

Or, if you’re using Carthage, add SwViewCapture to your Cartfile:

github "zixun/Log4G"

Usage

Log a log type message

Log4G.log("message")

Log a warning type message

Log4G.warning("message")

Log an error type message

Log4G.error("message")

Add to the log delegate listener

Log4G.add(delegate: self)

And implement delegate of Log4GDelegate:

func log4gDidRecord(with model:LogModel) {
    //Some Monitor Action
}

Remove frome the log delegate listener

Log4G.remove(delegate: self)

Author

name: 陈奕龙

twitter: @zixun_

email: [email protected]

github: zixun

blog: 子循(SubCycle)

License

Log4G is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Log4G",
    "version": "0.3.0",
    "summary": "Simple, lightweight logging framework written in Swift.",
    "description": "Simple, lightweight logging framework written in Swift.4G means for GodEye, it was development for GodEye at the beginning of the time.",
    "homepage": "https://github.com/zixun/Log4G",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zixun": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zixun/Log4G.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Log4G/Classes/**/*"
}

Pin It on Pinterest

Share This