它不仅能够打印出漂亮的日志格式,还支持定制的日志格式输出,日志分片等。
它可以在任何使用 Java、Kotlin 开发的 Android 项目中使用。(即使在您的项目中只使用 Java,也无需额外添加 Kotlin 的配置。)
模块 | 最新版本 |
---|---|
saf-log-core | |
saf-log-file | |
saf-log-okhttp | |
saf-log-converter-fastjson | |
saf-log-converter-gson | |
saf-log-debug-view | |
saf-log-extension |
将它添加到项目的 root build.gradle 中:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Gradle:
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:core:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:file:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:okhttp:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:fastjson:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:gson:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:debug_view:<latest-version>'
implementation 'com.github.fengzhizi715.SAF-Kotlin-log:extension:<latest-version>'
Wechat:fengzhizi715
Java与Android技术栈:每周更新推送原创技术文章,欢迎扫描下方的公众号二维码并关注,期待与您的共同成长和进步。
Copyright (C) 2017 - present, Tony Shen.
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.