创建 EchoLink.java
parent
fb8f5cc077
commit
b4ce52bbdc
|
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue