Android log util
- Log without tag
- Locate code from log
- Support for json log
- Support for list log
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.fbsum:LLog:1.2.0'
}
LLog.init(true);
LLog.e(log);
LLog.e(tag, log);
LLog.d(log);
LLog.d(tag,log);
LLog.json(json);
LLog.json(tag,json);
LLog.list(list);
LLog.list(tag,list);
Add gradle config:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Add proguard rules:
# Delete LLog code
-assumenosideeffects class com.fbsum.android.llog.LLog {
public static void init(...);
public static void d(...);
public static void e(...);
public static void json(...);
public static void list(...);
}