LogUtil
A custom Android log tools
Install / Use
/learn @syxc/LogUtilREADME
LogUtil
A custom Android log tools.
定制的 Android 日志处理工具,用于控制 LogCat 中日志信息的显示以及根据需要记录日志到 SD 卡中。
Android 开发中,LogCat 中日志信息的输出是比较消耗资源的,这尤其体现在用模拟器跑 Android 程序的时候。 在应用开发阶段,我们是需要在 LogCat 中查看我们的一些调试信息,但当应用发布给用户使用时, 我们可以关闭这些调试信息在 LogCat 中的输出,只根据我们的需要记录某些级别的日志信息。这个 LogUtil 就是用于解决这个问题。
使用 Gradle 编译需要注意的地方:
-
Gradle version >= Gradle 1.8
-
在工程目录下添加一个
local.properties文件,以下是我机器上该文件的配置:# This file is automatically generated by Android Studio. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file should *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration. # # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. sdk.dir=/Users/syxc/Application/android-sdk-macosx
Thanks!
License
The MIT license.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
