Commit c1d3e9a0 authored by 赵鹏翔's avatar 赵鹏翔

网络日志写入本地文件

parent 10b5b968
package com.miya.fastcashier.net
import android.util.Log
import com.miya.fastcashier.BaseApplication
import com.miya.fastcashier.beans.SelfCashierAccountInfo
import com.miya.fastcashier.beans.LoginRequest;
import com.miya.fastcashier.utils.LogFileUtils
import okhttp3.MultipartBody
import okhttp3.OkHttpClient
import retrofit2.Retrofit
......@@ -29,6 +31,7 @@ class ApiRequest private constructor() {
val httpLoggingInterceptor =
MiyaHttpLoggingInterceptor {
Log.e("####", it)
LogFileUtils.writeLog(BaseApplication.getApplication(),it)
}.apply { level = MiyaHttpLoggingInterceptor.Level.BODY }
val client = OkHttpClient.Builder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment