/// <summary> /// 获得实例 /// </summary> /// <returns></returns> public static NetPoll GetInstance() { if (_instance == null) { DxDebug.LogError("NetPoll.GetInstance():还未被实例化!"); } return(_instance); }
public void TestMethod_Log() { Config.DefaultConfigOnWindows(); Config.IsAutoHeartbeat = false; DNClient.GetInst().isDebugLog = true; LogFile.GetInst().isImmediatelyFlush = true; DxDebug.LogWarning("123"); DxDebug.LogError("123"); DNClient.GetInst().CloseImmediate(); DNServer.GetInst().Close(); LogFile.GetInst().Close(); }