You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
443 B
17 lines
443 B
package com.gyf.csams
|
|
|
|
import android.app.Application
|
|
import com.orhanobut.logger.AndroidLogAdapter
|
|
import com.orhanobut.logger.DiskLogAdapter
|
|
import com.orhanobut.logger.Logger
|
|
|
|
class APP : Application() {
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
//初始化日志
|
|
Logger.addLogAdapter(AndroidLogAdapter())
|
|
Logger.addLogAdapter(DiskLogAdapter())
|
|
|
|
Logger.i("${BuildConfig.APP_NAME}启动")
|
|
}
|
|
} |