Skip to content

Repository files navigation

OkLog

log util for android, support kotlin

导入

compile 'com.accegg.oklog:oklog:0.2.1'

Usage

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 javaConfigureBuilderbuilder = newConfigureBuilder(BuildConfig.DEBUG);
builder.setMethodCount(3);
builder.setShowMethod(true);
builder.setShowThread(true);
builder.showTime(true);
Configureconfigure = 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()
}))

预览

Blog

https://aceegg.com

About

log util for android with kotlin. 简洁清晰的日志设计,极度轻量化

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages