Code Monkey home page Code Monkey logo

logcatdialog's Introduction

LogcatView

一款可以在手机中打开logcat控制台

  • 方便快捷
  • 支持内容搜索
  • 支持自定义标题
  • 支持根据tag筛选
  • 支持根据log级别显示

如何引入

Android Studio 引入

第1步 将JitPack存储库添加到您的构建文件

将其添加到存储库末尾的根build.gradle中:

   allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

第2步 添加依赖关系

    dependencies {
    	   compile 'com.github.SHPDZY:LogCatDialog:1.0.2'
    }

Eclipse 引入

建议使用As,方便版本更新。

    dependencies {
           compile project(path: ':logcatdialog')
    }

如何使用

    //显示dialog
    LogCatControl.getBuilder(this)
            .setTitle("自定义标题")
            .setSearchContent("自定义搜索内容")
            .setSearchTag("自定义Tag")
            .setShowGrade(3) //设置显示级别:0 所有,1 系统,2 警告,3 错误
            .show();
            
    //清除dialog
    LogCatControl.getBuilder(this).clear();

效果图

首页写了几个功能测试用例,您可根据需求组合搭配使用。

首页

默认方式打开

默认方式打开

自定义标题方式打开

自定义标题方式打开

自定义搜索内容方式打开

自定义搜索内容方式打开

自定义目标TAG方式打开

自定义目标TAG方式打开

自定义LOG级别方式打开

自定义LOG级别方式打开

作者信息:

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.