GithubHelp home page GithubHelp logo

yanzi1208 / mlsdebugview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minlison/mlsdebugview

0.0 2.0 0.0 780 KB

一个轻量级查看log日志控件,再也不担心说参数传错啦!!!

Objective-C 100.00%

mlsdebugview's Introduction

MLSDebugView

一个轻量级查看log日志控件,再也不担心被说参数传错啦!!! 最上方的log日志,是最新的log日志

image

使用方法

1.可以在pch文件中插入下面两句代码

// 使用该宏定义,可以替换系统的NSLog
#define USE_MLSLOG
#import "MLSDebugManager.h"
如果使用的是framework
则引入头文件
#import <MLSDebugManager/MLSDebugManager.h>

2.在AppDelegate中的下面方法中,写下自定义参数

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
		// 开启DebugView
        [[MLSDebugInstance shareInstance] start];
        
        // 下面的参数是可定义参数
        
        // 是否同时在终端输出
        // [[MLSDebugInstance shareInstance] setDebug:YES];
        
        // 最大允许保留的日志个数
        // [MLSDebugInstance shareInstance].maxLogCount = 10000;
        
        // 最大允许占用的内存大小 (KB)
        // [MLSDebugInstance shareInstance].maxMemory = 10000.0;
        
        return YES;
}

mlsdebugview's People

Contributors

minlison avatar

Watchers

James Cloos avatar Keller 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.