[6.0.0] log

This commit is contained in:
zhongchao
2023-08-24 11:16:26 +08:00
parent 4beb4a3532
commit c377ecc260
94 changed files with 2677 additions and 834 deletions

View File

@@ -55,7 +55,7 @@ public abstract class AbsMogoApplication extends Application {
private void initRxJavaErrorHandler() {
RxJavaPlugins.setErrorHandler(throwable -> {
CallerLogger.INSTANCE.e("RxJava", "" + throwable);
CallerLogger.e("RxJava", "" + throwable);
});
}

View File

@@ -36,10 +36,10 @@ public class FinalizeCrashFixer {
AppStateManager.INSTANCE.registerAppStateListener(isForeground -> {
if (isForeground) {
//前后台则重新反射关闭一遍,避免线程被再次开启
CallerLogger.INSTANCE.d("FinalizeCrashFixer", "--- 切换到前台 ---");
CallerLogger.d("FinalizeCrashFixer", "--- 切换到前台 ---");
} else {
//前后台则重新反射关闭一遍,避免线程被再次开启
CallerLogger.INSTANCE.d("FinalizeCrashFixer", "--- 切换到后台 ---");
CallerLogger.d("FinalizeCrashFixer", "--- 切换到后台 ---");
}
realFix();
});

View File

@@ -83,7 +83,7 @@ public class ParamsUtil {
public static RequestBody convert(Map<String, Object> map) {
String json = GsonUtil.getGson().toJson(map);
CallerLogger.INSTANCE.d(TAG, "request params : " + json);
CallerLogger.d(TAG, "request params : " + json);
return RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), json);
}
@@ -109,13 +109,13 @@ public class ParamsUtil {
StringBuilder builder = new StringBuilder();
for (String key : keys) {
if (TextUtils.isEmpty(key)) {
CallerLogger.INSTANCE.w(TAG, "key is illegal");
CallerLogger.w(TAG, "key is illegal");
continue;
}
final Object value = params.get(key);
if (value == null) {
CallerLogger.INSTANCE.w(TAG, key + " value is illegal");
CallerLogger.w(TAG, key + " value is illegal");
continue;
}
String targetValue = value.toString();

View File

@@ -45,7 +45,7 @@ public class AIAssist {
try {
mTTS.release();
} catch (Exception e) {
CallerLogger.INSTANCE.e(TAG, "release has exception : " + e);
CallerLogger.e(TAG, "release has exception : " + e);
}
}
sInstance = null;