/// <summary> /// 设置glog 属性 /// </summary> public static void SetGLogProperty(string key, string v) { if (string.IsNullOrEmpty(key) || string.IsNullOrEmpty(v)) { return; } bool isActive = v == "1"; switch (key) { case "IsAllLogEnabled": GLog.SetAllLogEnabled(isActive); return; case "IsLogStackTraceEnabled": GLog.SetLogStackTraceEnabled(isActive); return; case "IsLogInfoEnabled": GLog.SetLogInfoEnabled(isActive); return; case "IsLogWarningEnabled": GLog.SetLogWarningEnabled(isActive); return; case "IsLogErrorEnabled": GLog.SetLogErrorEnabled(isActive); return; case "IsLogToConsoleEnabled": GLog.SetLogToConsoleEnabled(isActive); return; case "IsLogToFileEnabled": GLog.SetLogToFileEnabled(isActive); return; case "IsOpenIosNSLog": #if UNITY_IPHONE if (isActive) { GLog.SetCallLogBack(CallLogBack); } #endif return; } }