本文整理汇总了Java中timber.log.Timber.DebugTree类的典型用法代码示例。如果您正苦于以下问题:Java DebugTree类的具体用法?Java DebugTree怎么用?Java DebugTree使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DebugTree类属于timber.log.Timber包,在下文中一共展示了DebugTree类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateLoggingStatus
import timber.log.Timber.DebugTree; //导入依赖的package包/类
private static void updateLoggingStatus() {
Timber.uprootAll();
boolean enableDebugLogging = BuildConfig.DEBUG || DEBUG;
if (enableDebugLogging) {
Timber.plant(new DebugTree());
}
}
示例2: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Timber.plant(new DebugTree());
Dexter.initialize(this);
}
示例3: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
UniquePointOfInstanciation.setContext(getApplicationContext());
super.onCreate();
// initiate Timber
Timber.plant(new DebugTree());
}
示例4: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override public void onCreate() {
super.onCreate();
// you should not plant the DebugTree in production builds in your apps
Timber.plant(new DebugTree());
LeakCanary.install(this);
}
示例5: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// initiate Timber
if (BuildConfig.DEBUG){
Timber.plant(new DebugTree());
}
}
示例6: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// initiate Timber
Timber.plant(new DebugTree());
}
示例7: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// init database
FlowManager.init(this);
// enable logging
Timber.plant(new DebugTree());
// enable stetho
Stetho.initializeWithDefaults(this);
}
示例8: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
instance = this;
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
} else {
// TODO Crashlytics.start(this);
// TODO Timber.plant(new CrashlyticsTree());
}
}
示例9: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
} else {
Timber.plant(new DebugTree());
}
}
示例10: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
instance = this;
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
}
Timber.d("JIM - creating the app");
}
示例11: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
instance = this;
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
}
Stetho.initializeWithDefaults(this);
}
示例12: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
synchronized (WorkerApplication.class) {
instance = this;
}
AndroidModule androidModule = createAndroidModule();
DataModule dataModule = createDataModule();
PreferenceModule preferenceModule = createPreferenceModule();
dataComponent = DaggerDataComponent.builder()
.dataModule(dataModule)
.preferenceModule(preferenceModule)
.build();
projectComponent = DaggerProjectComponent.builder()
.androidModule(androidModule)
.dataModule(dataModule)
.preferenceModule(preferenceModule)
.projectModule(new ProjectModule())
.build();
projectsComponent = DaggerProjectsComponent.builder()
.androidModule(androidModule)
.dataModule(dataModule)
.projectsModule(new ProjectsModule())
.preferenceModule(preferenceModule)
.build();
settingsComponent = DaggerSettingsComponent.builder()
.preferenceModule(preferenceModule)
.settingsModule(new SettingsModule())
.build();
if (!isUnitTesting()) {
if (Notifications.Companion.isChannelsAvailable()) {
registerNotificationChannel();
}
LeakCanary.install(this);
ReloadNotificationService.startServiceWithContext(this);
}
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
}
}
示例13: onCreate
import timber.log.Timber.DebugTree; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Timber.plant(new DebugTree());
}