一款可以在手机中打开logcat控制台
- 方便快捷
- 支持内容搜索
- 支持自定义标题
- 支持根据tag筛选
- 支持根据log级别显示
将其添加到存储库末尾的根build.gradle中:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.SHPDZY:LogCatDialog:1.0.2'
}
建议使用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();