log util for android, support kotlin
compile 'com.accegg.oklog:oklog:0.2.1'
any where
OkLog.v(log);
OkLog.i(log);
OkLog.d(log);
OkLog.w(log);
OkLog.e(log);
if you want configure, initialize before call other method
// init in java
ConfigureBuilder builder = new ConfigureBuilder(BuildConfig.DEBUG);
builder.setMethodCount(3);
builder.setShowMethod(true);
builder.setShowThread(true);
builder.showTime(true);
Configure configure = builder.build();
OkLog.init(configure);
/**
* how to init in kotlin
*/
OkLog.init(with(OkLog.ConfigureBuilder(BuildConfig.DEBUG), {
showMethod(true)
showThread(true)
showTime(true)
methodCount(2)
build()
}))