Universal Log Tools for Objective-C
- 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
- 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
- Not support now . coming soon
- Just drag the
GokoUniversalLog/GokoUniversalLog
folder into your project .
- 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);
- 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 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 for more) :
@Class Foo
NSString * fooo = @"Fooo";
GokoDescriptionLog(fooo,[Foo new], nil);
GokoUniversalLog
is released under the MIT license. See LICENSE for details.