日志模块初步调试完成
This commit is contained in:
parent
ea7a0bda14
commit
26fcd9b584
@ -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
|
||||
|
@ -20,9 +20,9 @@ import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public class GlobalApplication extends Application {
|
||||
|
||||
|
||||
public static final String TAG = "GlobalApplication";
|
||||
|
||||
|
||||
final static String PREFS = GlobalApplication.class.getName() + "PREFS";
|
||||
final static String PREFS_ISDEBUGING = "PREFS_ISDEBUGING";
|
||||
|
||||
@ -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);
|
||||
|
||||
LogUtils.init(this);
|
||||
LogUtils.d(TAG, "onCreate");
|
||||
// 设置应用调试状态
|
||||
//SharedPreferences sharedPreferences = getSharedPreferences(PREFS, Context.MODE_PRIVATE);
|
||||
//GlobalApplication.isDebuging = sharedPreferences.getBoolean(PREFS_ISDEBUGING, GlobalApplication.isDebuging);
|
||||
|
||||
}
|
||||
|
||||
public static void write(InputStream input, OutputStream output) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user