public void CreateServer() { try { bool bResult = Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory()); if (bResult == false) { Console.WriteLine("[ERROR] 서버 네트워크 설정 실패 ㅠㅠ"); return; } MainLogger = base.Logger; RegistHandler(); CounterTh = new Thread(EchoCounter); CounterTh.Start(); MainLogger.Info($"[{DateTime.Now}] 서버 생성 성공"); } catch (Exception ex) { MainLogger.Error($"서버 생성 실패: {ex.ToString()}"); } }
public void CreateServer() { try { bool bResult = Setup(new RootConfig(), m_Config, logFactory: new NLogLogFactory()); if (bResult == false) { AppLogger.LogError("[ERROR] 서버 네트워크 설정 실패 ㅠㅠ"); return; } else { MainLogger = base.Logger; } RegistHandler(); MainLogger.Info("서버 생성 성공"); } catch (Exception ex) { AppLogger.LogError($"[ERROR] 서버 생성 실패: {ex.ToString()}"); } }
public void CreateServer() { try { bool bResult = Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory()); if (bResult == false) { Console.WriteLine("[ERROR] 서버 네트워크 설정 실패 ㅜㅜ"); return; } MainLogger = base.Logger; RegistHandler(); MainLogger.Info("서버 생성 성공"); } catch (Exception ex) { MainLogger.Error($"서버 생성 실패 : {ex.ToString()}"); } }
void RegistHandler() { //HandlerMap.Add((int)PACKETID.REQ_ECHO, CommonHan.RequestEcho); MainLogger.Info("핸들러 등록 완료"); }