DemoApplication.kt 723 B

1234567891011121314151617181920212223242526272829
  1. package com.suyghur.dolin
  2. import android.app.Application
  3. import android.content.Context
  4. import com.suyghur.dolin.zap.entity.Config
  5. import com.suyghur.dolin.zap.entity.Level
  6. import com.suyghur.dolin.zap.Zap
  7. /**
  8. * @author #Suyghur.
  9. * Created on 4/6/21
  10. */
  11. class DemoApplication : Application() {
  12. override fun attachBaseContext(base: Context?) {
  13. super.attachBaseContext(base)
  14. }
  15. override fun onCreate() {
  16. super.onCreate()
  17. val config = Config.Builder()
  18. .setLogcatLevel(Level.DEBUG)
  19. .setRecordEnable(true)
  20. .setRecordLevel(Level.DEBUG)
  21. .setOverdueDay(3)
  22. .create()
  23. Zap.initialize(this, config)
  24. }
  25. }