Breaking android log word limits and automatically formatting json.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
logutils
sample
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Log

Download GitHub license

Breaking android log word limits and automatically formatting json.

定制个Log,自带的Json不会格式化 ,而且不能超过4000 很尴尬,很难受!

使用方法

build.gradle(Module.app)

dependencies {
 mplementation 'com.townwang:logutils:1.0.0'
}

设置配置(最好在Application中)

//初始化设置过滤关键词以及是否打印
Log.setConfig("Demo",true);

开始使用吧:

Log.v ("皮一下,很开心");
Log.d ("这很代码");
Log.i ("重要的在下面");
Log.e ("出了个错,别介意");
Log.json ("打印JSON","这里的Json字符串");

看看Json效果

微信截图_20180705173344.png