https://github.com/syxc/logutil
A custom Android log tools
https://github.com/syxc/logutil
Last synced: 2 months ago
JSON representation
A custom Android log tools
- Host: GitHub
- URL: https://github.com/syxc/logutil
- Owner: syxc
- Created: 2012-10-18T07:16:36.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T12:15:17.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T21:01:54.362Z (3 months ago)
- Language: Java
- Homepage: https://github.com/syxc/LogUtil
- Size: 87.9 KB
- Stars: 8
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LogUtil
A custom Android log tools.
定制的 Android 日志处理工具,用于控制 LogCat 中日志信息的显示以及根据需要记录日志到 SD 卡中。
> Android 开发中,LogCat 中日志信息的输出是比较消耗资源的,这尤其体现在用模拟器跑 Android 程序的时候。
在应用开发阶段,我们是需要在 LogCat 中查看我们的一些调试信息,但当应用发布给用户使用时,
我们可以关闭这些调试信息在 LogCat 中的输出,只根据我们的需要记录某些级别的日志信息。这个 LogUtil 就是用于解决这个问题。使用 Gradle 编译需要注意的地方:
- Gradle version >= Gradle 1.8
- 在工程目录下添加一个 ```local.properties``` 文件,以下是我机器上该文件的配置:```bash
# 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.