本文整理汇总了Java中timber.log.Timber.plant方法的典型用法代码示例。如果您正苦于以下问题:Java Timber.plant方法的具体用法?Java Timber.plant怎么用?Java Timber.plant使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类timber.log.Timber
的用法示例。
在下文中一共展示了Timber.plant方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
}
component = DaggerAppComponent.builder()
.appModule(new AppModule(this))
.netModule(new NetModule())
.repositoryModule(new RepositoryModule())
.build();
Timber.plant(new Timber.DebugTree());
}
示例2: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
INSTANCE = this;
super.onCreate();
appComponent = DaggerApplicationComponent
.builder()
.apiModule(new ApiModule())
.applicationModule(new ApplicationModule(this))
.ciceroneModule(new CiceroneModule(Cicerone.create()))
.build();
if (BuildConfig.DEBUG) { //init Timber
Timber.plant(new Timber.DebugTree());
}
}
示例3: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test_player);
ButterKnife.bind(this);
btDecrypt.setOnClickListener(this);
btEncrypt.setOnClickListener(this);
allPlayerTime.setOnClickListener(this);
startPlay.setOnClickListener(this);
btEncryplay.setOnClickListener(this);
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
initData();
initPlayer(deng);
}
示例4: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Timber.setAppTag("WearVibrationCenter");
boolean isDebuggable = (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
if (!isDebuggable) {
ExceptionWear.initialize(this);
Timber.plant(new TimberExceptionWear(this));
}
Timber.plant(new Timber.AndroidDebugTree(isDebuggable));
FileLogger fileLogger = FileLogger.getInstance(this);
fileLogger.activate();
Timber.plant(fileLogger);
}
示例5: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
//Enable timber
Timber.plant(new ReleaseTree());
}
示例6: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) Timber.plant(new Timber.DebugTree());
mApplicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.build();
}
示例7: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
Timber.tag("BasicCalculator");
}
applicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.build();
}
示例8: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (BuildConfig.DEBUG){
Timber.plant(new Timber.DebugTree());
}
mBinding = DataBindingUtil.setContentView(this, R.layout.activity_main);
setSupportActionBar(mBinding.toolbar);
}
示例9: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
Timber.plant(new AwesomeDebugTree());
}
MobileAppInjector.getInstance().init(this);
}
示例10: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override public void onCreate() {
super.onCreate();
applicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.contextModule(new ContextModule(this))
.databaseModule(new DatabaseModule())
.networkModule(new NetworkModule())
.build();
applicationComponent.inject(this);
CalligraphyConfig.initDefault(calligraphyConfig);
Timber.plant(new Timber.DebugTree());
}
示例11: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
Timber.i("AstaApp started");
}
示例12: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) Timber.plant(new Timber.DebugTree());
mApplicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.build();
}
示例13: init
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void init() {
Timber.plant(new Timber.DebugTree(){
@Override
protected String createStackElementTag(StackTraceElement element) {
return super.createStackElementTag(element)+":"+element.getLineNumber();
}
});
}
示例14: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
} else {
Timber.plant(new ReleaseTree());
}
}
示例15: onCreate
import timber.log.Timber; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Timber.plant(new Timber.DebugTree());
RealmInitializer.init(this);
}