Java Code Examples for com.socks.library.KLog#init()

The following examples show how to use com.socks.library.KLog#init() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DaoApplication.java    From GreenDAO3_Demo with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    //初始化数据库
    DbCore.init(this);
    DbCore.enableQueryBuilderLog(); //开启调试 log

    //log管理
    KLog.init(BuildConfig.DEBUG);

}
 
Example 2
Source File: MyApplication.java    From ZZShow with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    mApplication = this;
    this.mAppModule = new AppModule(this,mAppManager);//提供application
    mAppComponent = DaggerAppComponent
            .builder()
            .appModule(mAppModule)
            .build();

    initDayNightMode();
    initDaoSession();
    KLog.init(true);
}
 
Example 3
Source File: JDApplication.java    From JianDanRxJava with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    StrictModeUtil.init();
    super.onCreate();
    mContext = this;

    refWatcher = LeakCanary.install(this);
    ImageLoadProxy.initImageLoader(this);
    initHttpClient();
    SPHelper.init(mContext);
    KLog.init(BuildConfig.DEBUG);
}
 
Example 4
Source File: KyLog.java    From BitkyShop with MIT License 4 votes vote down vote up
public static void init(boolean isShowLog, @Nullable String tag) {
    TAG = tag;
    KLog.init(isShowLog, tag);
}
 
Example 5
Source File: KLogApplication.java    From KLog with Apache License 2.0 4 votes vote down vote up
@Override
    public void onCreate() {
        super.onCreate();
//        KLog.init(BuildConfig.LOG_DEBUG);
        KLog.init(BuildConfig.LOG_DEBUG, "Kai");
    }