Latest 1.0.2
Homepage https://github.com/Gokotx/GokoUniversalLog
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

Universal Log Tools for Objective-C

How To Get Started

  • Download GokoUniversalLog and try out the included example demo
  • Read the GokoUniversalLog.h file for a comprehensive look at all of the APIs available in GokoUniversalLog

Installation

From CocoaPods

  • CocoaPods is a dependency manager for Objective-C , which automates and simplifies the process of using 3rd-party libraries like GokoUniversalLog in your projects . First , add the following line to your Podfile:
    pod 'GokoUniversalLog'
  • If you want to use the latest features of GokoUniversalLog use normal external source dependencies .
    pod 'GokoUniversalLog', :git => 'https://github.com/Gokotx/GokoUniversalLog.git'

    This pulls from the master branch directly .

  • Second, , install GokoUniversalLog into your project :
    pod install

    Carthage

  • Not support now . coming soon

    Manually

  • Just drag the GokoUniversalLog/GokoUniversalLog folder into your project .

    Usage

    Gloable Setting For GokoUniversalLog

  • Suggest to invoke the following method in -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    
    /**
    Gloable setting for GokoUniversalLog

@param enable YES for enable , NO for disable
*/
void GokoLogEnable(BOOL enable);

### Start Log
- If you just want to see a convenient log for their self of objects , use the following :

attribute((overloadable)) void GokoLog(id firstParam, …) NS_REQUIRES_NIL_TERMINATION;

usually look as simple as this (see [demo](https://github.com/Gokotx/GokoUniversalLog/archive/master.zip) for more):

@Class Foo
NSString * fooo = @"Fooo";
GokoLog(fooo,[Foo new], nil);
GokoLog(1.4);
GokoLog(@1,nil);
GokoLog(16);


- If you want to see  all properties of all objects , use the following :

attribute((overloadable)) void GokoDescriptionLog(id firstParam, …) NS_REQUIRES_NIL_TERMINATION;

usually look as simple as this ( see [demo](https://github.com/Gokotx/GokoUniversalLog/archive/master.zip) for more) :

@Class Foo
NSString * fooo = @"Fooo";
GokoDescriptionLog(fooo,[Foo new], nil);


## License
`GokoUniversalLog` is released under the MIT license. See LICENSE for details.

## 中文版
- [中文版说明](http://www.jianshu.com/p/639f2acdb702)

Latest podspec

{
    "name": "GokoUniversalLog",
    "version": "1.0.2",
    "summary": "UniversalLog Tools for Objective-C.",
    "description": "Convenient Log for Everything in Objective-C",
    "homepage": "https://github.com/Gokotx/GokoUniversalLog",
    "license": "MIT",
    "authors": {
        "Goko": "[email protected]}"
    },
    "source": {
        "git": "https://github.com/Gokotx/GokoUniversalLog.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "GokoUniversalLog/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This