• Stars
    star
    789
  • Rank 55,661 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android 日志打印框架,在手机上可以直接看到 Logcat 日志啦

日志查看框架

集成步骤

  • 如果你的项目 Gradle 配置是在 7.0 以下,需要在 build.gradle 文件中加入
allprojects {
    repositories {
        // JitPack 远程仓库:https://jitpack.io
        maven { url 'https://jitpack.io' }
    }
}
  • 如果你的 Gradle 配置是 7.0 及以上,则需要在 settings.gradle 文件中加入
dependencyResolutionManagement {
    repositories {
        // JitPack 远程仓库:https://jitpack.io
        maven { url 'https://jitpack.io' }
    }
}
  • 配置完远程仓库后,在项目 app 模块下的 build.gradle 文件中加入远程依赖
dependencies {
    // 日志调试框架:https://github.com/getActivity/Logcat
    debugImplementation 'com.github.getActivity:Logcat:11.3'
}

AndroidX 兼容

  • 如果项目是基于 AndroidX 包,请在项目 gradle.properties 文件中加入
# 表示将第三方库迁移到 AndroidX
android.enableJetifier = true
  • 如果项目是基于 Support 包则不需要加入此配置

使用方式

  • 无需调用,直接运行,然后授予悬浮窗权限即可

  • 在 debug 模式下运行即可,在 release 正式打包的时不会集成本库,尽管放心

框架的具体用法请点击这里查看

框架亮点

  • 只需集成,无需调用

  • 日志长按可复制分享

  • 支持将日志保存到本地

  • 长日志点击可收缩展开显示

  • 日志搜索结果支持文本高亮

  • 支持对指定 TAG 的日志屏蔽

  • 多个相同 TAG 日志自动合并显示

  • 仅在 Debug 下集成,无需手动初始化

作者的其他开源项目

微信公众号:Android轮子哥

Android 技术 Q 群:10047167

如果您觉得我的开源库帮你节省了大量的开发时间,请扫描下方的二维码随意打赏,要是能打赏个 10.24 🐵就太👍了。您的支持将鼓励我继续创作:octocat:点击查看捐赠列表

广告区

  • 我现在任腾讯云服务器推广大使,大家如果有购买服务器的需求,可以通过下面的链接购买

【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中

【腾讯云】中小企业福利专场,多款刚需产品,满足企业通用场景需求

License

Copyright 2020 Huang JinQun

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

AndroidProject

Android 技术中台,但愿人长久,搬砖不再有
Java
6,224
star
2

XXPermissions

Android 权限请求框架,已适配 Android 14
Java
5,398
star
3

Toaster

Android 吐司框架,专治 Toast 各种疑难杂症
Java
3,084
star
4

EmojiPackage

表情包资源合集,张张都是经典
2,602
star
5

TitleBar

Android 标题栏框架,从此布局属性不用记
Java
1,689
star
6

AndroidVersionAdapter

安卓版本适配全套指南
1,680
star
7

EasyWindow

Android 悬浮窗框架,好用不解释
Java
1,316
star
8

AndroidIndex

Android 资源大汇总
1,307
star
9

EasyHttp

Android 网络请求框架,简单易用,so easy
Java
1,304
star
10

AndroidProject-Kotlin

Android 技术中台 Kotlin 版本,但愿人长久,搬砖不再有
Kotlin
1,206
star
11

AndroidGithubBoss

Github Android 个人技术开源影响力排行榜
1,174
star
12

MultiLanguages

Android 多语种适配框架,兼容高版本,适配第三方库语种
Java
896
star
13

ShapeView

Shape 支持在布局中直接定义啦,支持设置阴影,文字渐变色,状态选择器
Java
746
star
14

StudioPlugins

Android Studio 精品插件合集,不在于多只在于精
664
star
15

GsonFactory

Gson 解析容错框架,愿从此再无 Json 解析报错
Java
633
star
16

AndroidCodeStandard

Android 代码规范文档
565
star
17

AiIndex

ChatGPT
347
star
18

ProvinceJson

省市区Json
223
star
19

NestedScrollLayout

支持嵌套滚动的布局
Java
133
star
20

Donate

开源心得及支持人员列表
81
star
21

MarkdownDoc

57
star
22

ShapeDrawable

Java
54
star
23

getActivity

22
star
24

Markdown

21
star
25

EasyPermissions

Java
17
star
26

MyTomcat

Java
16
star
27

IssueTemplateGuide

8
star