[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

@@ -53,14 +53,14 @@ public class BaseFloatDialog extends Dialog {
@Override
public void show() {
CallerLogger.INSTANCE.d(TAG, "onShow====");
CallerLogger.d(TAG, "onShow====");
super.show();
setWindowSize();
}
@Override
public void dismiss() {
CallerLogger.INSTANCE.d( TAG, "onDismiss====");
CallerLogger.d( TAG, "onDismiss====");
super.dismiss();
}
private void setWindowSize(){

View File

@@ -142,7 +142,7 @@ public class RoundedDrawable extends Drawable {
drawable.draw(canvas);
} catch (Exception e) {
e.printStackTrace();
CallerLogger.INSTANCE.w(M_HMI + TAG, "Failed to create bitmap from drawable!");
CallerLogger.w(M_HMI + TAG, "Failed to create bitmap from drawable!");
bitmap = null;
}

View File

@@ -273,7 +273,7 @@ public class RoundedImageView extends AppCompatImageView {
try {
d = rsrc.getDrawable(mResource);
} catch (Exception e) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "Unable to find resource : " + mResource + " exception : " + e);
CallerLogger.w(M_HMI + TAG, "Unable to find resource : " + mResource + " exception : " + e);
// Don't try again.
mResource = 0;
}
@@ -311,7 +311,7 @@ public class RoundedImageView extends AppCompatImageView {
try {
d = rsrc.getDrawable(mBackgroundResource);
} catch (Exception e) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "Unable to find resource : " + mBackgroundResource + " exception : " + e);
CallerLogger.w(M_HMI + TAG, "Unable to find resource : " + mBackgroundResource + " exception : " + e);
// Don't try again.
mBackgroundResource = 0;
}

View File

@@ -53,7 +53,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EventBus.getDefault().register(this);
CallerLogger.INSTANCE.i(M_HMI + TAG, "onCreate");
CallerLogger.i(M_HMI + TAG, "onCreate");
}
@Override
@@ -99,7 +99,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
@Override
protected void loadOthersModules() {
super.loadOthersModules();
CallerLogger.INSTANCE.d(M_MAIN + TAG, "loadOthersModules");
CallerLogger.d(M_MAIN + TAG, "loadOthersModules");
loadOCHModule();
}
@@ -156,7 +156,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
paramIndexes = {0}
)
private void traceStartUp(String content) {
CallerLogger.INSTANCE.d(M_HMI + TAG, content);
CallerLogger.d(M_HMI + TAG, content);
}
@Override

View File

@@ -66,7 +66,7 @@ public abstract class MainMoGoApplication extends AbsMogoApplication {
}
private void initModules() {
CallerLogger.INSTANCE.d(M_MAIN + TAG, "initModules");
CallerLogger.d(M_MAIN + TAG, "initModules");
// BIZ
MogoModulePaths.addModuleFunctionServer(new MogoModule(MogoServicePaths.PATH_FUNC_BIZ, "IMoGoNoticeProvider"));
// 后置 车聊聊IM
@@ -76,7 +76,7 @@ public abstract class MainMoGoApplication extends AbsMogoApplication {
// 后置 地图数据收集模块
MogoModulePaths.addModuleFunctionServer(new MogoModule(MogoServicePaths.PATH_MAP_DATA_COLLECT_PROVIDER, "MoGoMapDataCollector"));
}
CallerLogger.INSTANCE.i(M_MAIN + TAG, "App launch timer cost " + (System.currentTimeMillis() - start) + "ms");
CallerLogger.i(M_MAIN + TAG, "App launch timer cost " + (System.currentTimeMillis() - start) + "ms");
}
@Override

View File

@@ -66,7 +66,7 @@ public class PassengerLauncherActivity extends MainActivity implements IMogoInte
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EventBus.getDefault().register(this);
CallerLogger.INSTANCE.i(M_HMI + TAG, "onCreate");
CallerLogger.i(M_HMI + TAG, "onCreate");
}
@Override
@@ -120,7 +120,7 @@ public class PassengerLauncherActivity extends MainActivity implements IMogoInte
@Override
protected void loadOthersModules() {
super.loadOthersModules();
CallerLogger.INSTANCE.d(M_HMI + TAG, "loadOthersModules");
CallerLogger.d(M_HMI + TAG, "loadOthersModules");
loadOCHModule();
}
@@ -151,7 +151,7 @@ public class PassengerLauncherActivity extends MainActivity implements IMogoInte
paramIndexes = {0}
)
private void traceStartUp(String content) {
CallerLogger.INSTANCE.d(M_HMI + TAG, content);
CallerLogger.d(M_HMI + TAG, content);
}
@Override

View File

@@ -83,7 +83,7 @@ public class MogoModulesManager implements MogoModulesHandler {
final List<MogoModule> modules = MogoModulePaths.getModuleFunctions();
if (modules != null && !modules.isEmpty()) {
for (MogoModule module : modules) {
CallerLogger.INSTANCE.d(M_MAIN + TAG, "module.getPath():" + module.getPath() + " name: " + module.getName());
CallerLogger.d(M_MAIN + TAG, "module.getPath():" + module.getPath() + " name: " + module.getName());
IMoGoFunctionProvider provider = loadFunction(module.getPath());
if (provider != null) {
mModuleFunctionProviders.put(module, provider);
@@ -98,7 +98,7 @@ public class MogoModulesManager implements MogoModulesHandler {
final List<MogoModule> modules = MogoModulePaths.getModuleFunctionServers();
if (modules != null && !modules.isEmpty()) {
for (MogoModule module : modules) {
CallerLogger.INSTANCE.d(M_MAIN + TAG, "module.getPath():" + module.getPath() + " name: " + module.getName());
CallerLogger.d(M_MAIN + TAG, "module.getPath():" + module.getPath() + " name: " + module.getName());
IMoGoFunctionServerProvider provider = loadFunctionServer(module.getPath());
if (provider != null) {
mModuleFunctionServerProviders.put(module, provider);
@@ -115,7 +115,7 @@ public class MogoModulesManager implements MogoModulesHandler {
if (baseModule == null) {
continue;
}
CallerLogger.INSTANCE.d(M_MAIN + TAG, "加载基本模块 : " + baseModule.getPath());
CallerLogger.d(M_MAIN + TAG, "加载基本模块 : " + baseModule.getPath());
loadBaseProvider(baseModule.getPath());
}
}
@@ -155,10 +155,10 @@ public class MogoModulesManager implements MogoModulesHandler {
if (modules != null) {
for (IMoGoFunctionProvider module : modules) {
try {
CallerLogger.INSTANCE.d(M_HMI + TAG, "destroy module: " + module.getFunctionName());
CallerLogger.d(M_HMI + TAG, "destroy module: " + module.getFunctionName());
module.onDestroy();
} catch (Exception e) {
CallerLogger.INSTANCE.e(M_HMI + TAG, e + " onDestroy");
CallerLogger.e(M_HMI + TAG, e + " onDestroy");
}
}
}
@@ -172,10 +172,10 @@ public class MogoModulesManager implements MogoModulesHandler {
if (modules != null) {
for (IMoGoFunctionServerProvider module : modules) {
try {
CallerLogger.INSTANCE.d(M_HMI + TAG, "destroy module: " + module.getFunctionName());
CallerLogger.d(M_HMI + TAG, "destroy module: " + module.getFunctionName());
module.onDestroy();
} catch (Exception e) {
CallerLogger.INSTANCE.e(M_HMI + TAG, e + " onDestroy");
CallerLogger.e(M_HMI + TAG, e + " onDestroy");
}
}
}

View File

@@ -62,7 +62,7 @@ public class FloatingViewHandler {
}
if (sFloatingLayout == null) {
CallerLogger.INSTANCE.e(M_HMI + TAG, "no floating frame. ");
CallerLogger.e(M_HMI + TAG, "no floating frame. ");
return;
}
@@ -85,7 +85,7 @@ public class FloatingViewHandler {
}
if (sFloatingLayout == null) {
CallerLogger.INSTANCE.e(M_HMI + TAG, "no floating frame. ");
CallerLogger.e(M_HMI + TAG, "no floating frame. ");
return;
}
sFloatingLayout.addView(view, params);
@@ -106,18 +106,18 @@ public class FloatingViewHandler {
}
if (sFloatingLayout == null) {
CallerLogger.INSTANCE.e(M_HMI + TAG, "no floating frame. ");
CallerLogger.e(M_HMI + TAG, "no floating frame. ");
return;
}
if (sView == view) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "改布局已添加且没有移除,不操作");
CallerLogger.w(M_HMI + TAG, "改布局已添加且没有移除,不操作");
return;
}
if (sView != null) {
if (priority < sPriority) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "过滤低优先级布局");
CallerLogger.w(M_HMI + TAG, "过滤低优先级布局");
return;
}
sFloatingLayout.removeView(sView);
@@ -144,18 +144,18 @@ public class FloatingViewHandler {
}
if (sFloatingLayout == null) {
CallerLogger.INSTANCE.e(M_HMI + TAG, "no floating frame. ");
CallerLogger.e(M_HMI + TAG, "no floating frame. ");
return;
}
if (sView == view) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "改布局已添加且没有移除,不操作");
CallerLogger.w(M_HMI + TAG, "改布局已添加且没有移除,不操作");
return;
}
if (sView != null) {
if (priority < sPriority) {
CallerLogger.INSTANCE.w(M_HMI + TAG, "过滤低优先级布局");
CallerLogger.w(M_HMI + TAG, "过滤低优先级布局");
return;
}
sFloatingLayout.removeView(sView);