Need help with Logcat?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

getActivity
168 Stars 18 Forks Apache License 2.0 17 Commits 0 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 7,767
Java
rxpermi...
Android
mvparms
14 commits
# 5,377
Java
toast-n...
Android
mvparms
3 commits

日志调试框架

集成步骤

dependencies {
    // 日志调试框架:https://github.com/getActivity/Logcat
    debugImplementation 'com.hjq:logcat:9.5'
}

使用方式

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

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

截图欣赏

日志颜色个性化

在项目的

values/color.xml
中加入你喜欢的配色,例如
#FFBBBBBB
#FF33B5E5
#FF99CC00
#FFFFBB33
#FFFF4444
#FFFFFFFF

框架亮点

  • 只需集成,无需调用

  • 日志长按可复制分享

  • 支持将日志保存到本地

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

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

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

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

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

作者的其他开源项目

Android技术讨论Q群:78797078

微信公众号:Android轮子哥

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

点击查看捐赠列表

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.