创建 EchoLink.java

dev
wangsiyuan 2023-12-07 19:23:06 +08:00
parent fb8f5cc077
commit b4ce52bbdc
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.nbee.echolink;
import android.app.Application;
import timber.log.Timber;
public class EchoLink extends Application {
@Override
public void onCreate() {
super.onCreate();
// 植入 Timber
Timber.plant(new FileLoggingTree(this));
// 打印日志文件的路径
Timber.d("Log file path: " + this.getFilesDir() + "/logs/echoLink.log");
}
}