#include "pch/pch.h" #include "network/CServer.h" int main() { //初始化日志 CLewaimaiLog log; log.Init(); //读取配置文件 CConfigReader::ReadConfigFile(); try { //初始化服务器,开始监听和处理消息 CServer s; s.Init(); } catch (std::exception& e) { std::cerr << "Exception: " << e.what() << "\n"; LOG_INFO("Exception: " << e.what()); } }