Skip to content

gitph101/GHConsole

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

GHConsole

中文版本请参看这里

An easy and wireless way to get what you had logged and wanted to see in your App.

Pod Version Swift Version Swift Version Plaform License MIT

Alt text

Installation

Simply add GHConsole folder with files to your project, or use CocoaPods.

CocoaPods

You can use CocoaPods to install GHConsole by adding it to your Podfile:

platform :ios, '7.0'
use_frameworks!

target 'your_project_name' do
	pod 'GHConsole'
end

Usage example

Simply start GHConsole in your App. GHConsole view will be added above the key window as a view.

You can find example projects here

Start Log on GHConsole

You just only initialize GHConsole in your appDelegate.m When your App are launching.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
   [[GHConsole sharedConsole]startPrintLog];
    return YES;
}

And then, you can use GGLog( ) like NSLog( )

GGLog(@"This is some log I just want to show in GHConsole");




  NSDictionary *parameterDict = @{@"paraKey1":@"paraValue1",
                                    @"paraKey2":@"paraValue2",
                                    @"paraKey3":@"paraValue2"
                                    }
GGLog(@"%@",parametersDict);

//if you  want to see the responsJSon from the API, you can just use GGLog( ) like NSLog( ) here.
GGLog(@"%@",responsJSON);

When you double tap The GHConsole in your app and then the appearance of it just like this. Alt text

Stop Logging

Call when you're done with GHConsole.

[GHConsole shareConsole]stop];

if you don't want to see the GHConsole,you just need to annotate it.

//[[GHConsole sharedConsole]startPrintLog];

Configuration

Sorry. The GHConsole is too easy to have not any configuration. If you have any good idea or demand you can tell me at my git or email me.

Requirements

  • iOS 7.0+

Meta

Daniil Gavrilov - Blog - FB

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

About

An easy way to show a console in your app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%