Git Product home page Git Product logo

ghconsole's Introduction

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!
#you need to update your CocoaPods version if you can't find this pod.
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];

Features

GHConsole is at an inconspicuous position in your app.Multiple gesture was added in GHConsole. double tap to make it Full Screen and back.

This framework only contains two files

GHConsole.h

GHConsole.m

Easy to use and uninstall.

you can see the number of the line for your GGLog( ) and function name clearly in GHConslole.

A clear button on GHConsole can remove some useless log.

Configuration

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

Requirements

  • iOS 7.0+

Contributors List:

zhoushaowen - https://github.com/zhoushaowen

Kane - https://github.com/KaneLanF

Meta

Liao Guanghui - Blog - FB

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

ghconsole's People

Contributors

liaoworking avatar zhoushaowen avatar zzbelieve avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.