Skip to content
/ OkLog Public

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

License

Notifications You must be signed in to change notification settings

imcloud/OkLog

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 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()
        }))

预览

Blog

https://aceegg.com

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published