public static void _BaseDebugLog(object message , Object context , System.Exception exception ,eDebugLogMode eMode) { //CommonNet.CNetLog.OutputDebugString((string)message); //m_strCommon = "[Thr:"+System.AppDomain.GetCurrentThreadId().ToString("00000") + "] "; // window only? //m_strCommon = CommonNet.CUnitUtil.TimeStamp(); message = m_strCommon + message; if (m_DebugLogView == true) { switch (eMode) { case eDebugLogMode._None: { Debug.Log(message, context); } break; case eDebugLogMode._Waring: { Debug.LogWarning(message, context); } break; case eDebugLogMode._Error: { Debug.LogError(message, context); } break; case eDebugLogMode._Exception: { Debug.LogException(exception, context); message = exception.ToString(); } break; } } // if (null == m_Log) // m_Log = new CommonNet.CEzLog("Client_debugLog.txt"); // else // { // //m_Log.ReCreate("Client_debugLog.txt"); // m_Log.Log(message.ToString(), CommonNet.LOG_TYPE.INFO); // //m_Log.Close(); // } }
public static void _BaseLog(object message, Object context, System.Exception exception, eDebugLogMode eMode) { //CommonNet.CNetLog.OutputDebugString((string)message); //m_strCommon = "[Thr:"+System.AppDomain.GetCurrentThreadId().ToString("00000") + "] "; // window only? //m_strCommon = CommonNet.CUnitUtil.TimeStamp(); message = m_strCommon + message; if (m_DebugLogView == true) { switch (eMode) { case eDebugLogMode._None: { Debug.Log(message, context); } break; case eDebugLogMode._Waring: { Debug.LogWarning(message, context); } break; case eDebugLogMode._Error: { Debug.LogError(message, context); } break; case eDebugLogMode._Exception: { Debug.LogException(exception, context); message = exception.ToString(); } break; } } // if (null == m_Log) // m_Log = new CommonNet.CEzLog("Client_debugLog.txt"); // else // { // //m_Log.ReCreate("Client_debugLog.txt"); // m_Log.Log(message.ToString(), CommonNet.LOG_TYPE.INFO); // //m_Log.Close(); // } }
public static void _BaseLog(object message, Object context, System.Exception exception, eDebugLogMode eMode) { //_strCommon = "[Thr:"+System.AppDomain.GetCurrentThreadId().ToString("00000") + "] "; // window only? //_strCommon = CommonNet.CUnitUtil.TimeStamp(); _strCommon = _strCommon + message; if (true == UnityEngine.Debug.isDebugBuild) { switch (eMode) { case eDebugLogMode._None: { Debug.Log(message, context); } break; case eDebugLogMode._Waring: { Debug.LogWarning(message, context); } break; case eDebugLogMode._Error: { Debug.LogError(message, context); } break; case eDebugLogMode._Exception: { Debug.LogException(exception, context); } break; } } }