日志模块初步调试完成
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
#Created by .winboll/winboll_app_build.gradle
 | 
			
		||||
#Fri Feb 07 09:04:42 GMT 2025
 | 
			
		||||
#Fri Feb 07 11:37:57 GMT 2025
 | 
			
		||||
stageCount=1
 | 
			
		||||
libraryProject=libappbase
 | 
			
		||||
baseVersion=1.2
 | 
			
		||||
publishVersion=1.2.0
 | 
			
		||||
buildCount=172
 | 
			
		||||
buildCount=180
 | 
			
		||||
baseBetaVersion=1.2.1
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
#Created by .winboll/winboll_app_build.gradle
 | 
			
		||||
#Fri Feb 07 09:04:42 GMT 2025
 | 
			
		||||
#Fri Feb 07 11:37:57 GMT 2025
 | 
			
		||||
stageCount=1
 | 
			
		||||
libraryProject=libappbase
 | 
			
		||||
baseVersion=1.2
 | 
			
		||||
publishVersion=1.2.0
 | 
			
		||||
buildCount=172
 | 
			
		||||
buildCount=180
 | 
			
		||||
baseBetaVersion=1.2.1
 | 
			
		||||
 
 | 
			
		||||
@@ -60,15 +60,21 @@ public class GlobalApplication extends Application {
 | 
			
		||||
    @Override
 | 
			
		||||
    public void onCreate() {
 | 
			
		||||
        super.onCreate();
 | 
			
		||||
        GlobalApplication.isDebuging = true;
 | 
			
		||||
        GlobalApplication.setIsDebuging(this, true);
 | 
			
		||||
        LogUtils.init(this);
 | 
			
		||||
        LogUtils.setLogLevel(LogUtils.LOG_LEVEL.Debug);
 | 
			
		||||
        //LogUtils.setTAGListEnable(GlobalApplication.TAG, true);
 | 
			
		||||
        LogUtils.setALlTAGListEnable(true);
 | 
			
		||||
        LogUtils.d(TAG, "LogUtils init");
 | 
			
		||||
        
 | 
			
		||||
        // 设置应用异常处理窗口
 | 
			
		||||
        CrashHandler.init(this);
 | 
			
		||||
 | 
			
		||||
        // 设置应用调试状态
 | 
			
		||||
        SharedPreferences sharedPreferences = getSharedPreferences(PREFS, Context.MODE_PRIVATE);
 | 
			
		||||
        GlobalApplication.isDebuging = sharedPreferences.getBoolean(PREFS_ISDEBUGING, GlobalApplication.isDebuging);
 | 
			
		||||
        //SharedPreferences sharedPreferences = getSharedPreferences(PREFS, Context.MODE_PRIVATE);
 | 
			
		||||
        //GlobalApplication.isDebuging = sharedPreferences.getBoolean(PREFS_ISDEBUGING, GlobalApplication.isDebuging);
 | 
			
		||||
 | 
			
		||||
        LogUtils.init(this);
 | 
			
		||||
        LogUtils.d(TAG, "onCreate");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static void write(InputStream input, OutputStream output) throws IOException {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user