package moe.yuuta.workmode import android.app.Application import com.elvishew.xlog.XLog class App : Application() { override fun onCreate() { super.onCreate() Setup.initLogs(Setup.getLogsPath(this).absolutePath) Setup.initFabric(this) val handler = Thread.getDefaultUncaughtExceptionHandler() Thread.setDefaultUncaughtExceptionHandler { t, e -> XLog.tag("App").build() .e("***Crashed", e) handler.uncaughtException(t, e) } } }