askk / Logcat

This is to help developers quickly see the logging framework they want

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

日志调试框架

码云地址:Gitee

点击此处下载Demo

集成步骤

dependencies {
    debugImplementation 'com.hjq:logcat:8.2'
}

使用方式

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

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

截图欣赏

日志颜色个性化

在项目的 values/color.xml 中加入你喜欢的配色,例如

<color name="logcat_level_verbose_color">#FFBBBBBB</color>
<color name="logcat_level_debug_color">#FF33B5E5</color>
<color name="logcat_level_info_color">#FF99CC00</color>
<color name="logcat_level_warn_color">#FFFFBB33</color>
<color name="logcat_level_error_color">#FFFF4444</color>
<color name="logcat_level_other_color">#FFFFFFFF</color>

框架亮点

  • 只需集成,无需调用

  • 日志长按可复制分享

  • 支持将日志保存到本地

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

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

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

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

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

作者的其他开源项目

Android技术讨论Q群:78797078

如果您觉得我的开源库帮你节省了大量的开发时间,请扫描下方的二维码随意打赏,要是能打赏个 10.24 🐵就太👍了。您的支持将鼓励我继续创作: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.

About

This is to help developers quickly see the logging framework they want

License:Apache License 2.0


Languages

Language:Java 100.0%