public static void Init() { s_LogOutPutThread.Init(); Application.logMessageReceivedThreaded += UnityLogCallBackThread; Application.logMessageReceived += UnityLogCallBack; }
public static void Init(bool isOpenLog = true) { Debug.logger.logEnabled = isOpenLog; if (isOpenLog) { s_LogOutPutThread.Init(); Application.logMessageReceivedThreaded += UnityLogCallBackThread; Application.logMessageReceived += UnityLogCallBack; } }
public static void Init(bool isOpenLog = true) { #if UNITY_2017_1_OR_NEWER Debug.unityLogger.logEnabled = isOpenLog; #else Debug.logger.logEnabled = isOpenLog; #endif if (isOpenLog) { s_LogOutPutThread.Init(); Application.logMessageReceivedThreaded += UnityLogCallBackThread; Application.logMessageReceived += UnityLogCallBack; } }
public static void Init(bool isOpenLog = true) { if (Application.platform != RuntimePlatform.WindowsEditor && Application.platform != RuntimePlatform.LinuxEditor) { int status = PlayerPrefs.GetInt("Log", -1); if (status != -1) { isOpenLog = status == 1 ? true : false; } } PlayerPrefs.SetInt("Log", (isOpenLog ? 1 : 0)); if (isOpenLog) { s_LogOutPutThread.Init(); ApplicationManager.s_OnApplicationQuit += OnApplicationQuit; Application.logMessageReceivedThreaded += UnityLogCallBackThread; Application.logMessageReceived += UnityLogCallBack; } }