百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

LogUtils

> 编程语言
开源

更方便、易于使用的 Android 日志管理器

1.1K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

更方便、易于使用的 Android 日志管理器

LogUtils

More convenient and easy to use android Log manager

Features

  • 支持直接打印数据集合, 如List、Set、Map、数组等
  • 全局配置log输出, 个性化设置Tag
  • 准确显示调用方法、行,快速定位日志所在文件位置
  • 支持android系统复杂对象Intent、Bundle、Message等打印
  • 提供空实现 release-no-op版本
  • 支持高性能日志写入文件(基于mmap)
  • 兼容Android Studio 3.1 日志格式

Usage

groovy
implementation 'com.apkfuns.logutils:library:1.7.5'

release-no-op版本 (debug输出日志, release空实现)

groovy
debugImplementation 'com.apkfuns.logutils:library:1.7.5'
releaseImplementation 'com.apkfuns.logutils:logutils-no-op:1.7.5'

日志写入到文件 (基于Log4a实现)

java
implementation 'com.apkfuns.log2file:log2file:1.3.1'

// 设置日志写文件引擎
LogUtils.getLog2FileConfig().configLogFileEngine(new LogFileEngineFactory(context));

别忘了添加写文件权限

Wiki

使用教程

License

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaandroidfilelogfileloggerjava

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言