main.cpp 561 B

123456789101112131415161718192021222324252627
  1. #include <iostream>
  2. #include "spdlog/spdlog.h"
  3. #include "SPAServer.h"
  4. #include "LHLogInit.h"
  5. #include "LHQLogAPI.h"
  6. #include <QCoreApplication>
  7. int main(int argc, char* argv[])
  8. {
  9. /* 初始化日志库 */
  10. initLog("SecurePlayAuxServer", g_apiLhQLog);
  11. auto logger = spdlog::get("main");
  12. if(logger == nullptr)
  13. {
  14. SPDLOG_ERROR("main logger is nullptr");
  15. return -1;
  16. }
  17. SPDLOG_LOGGER_INFO(logger, "★ ★ ★ ★ ★ ☆ SecurePlayAuxServer ☆ ★ ★ ★ ★ ★");
  18. SPAServer server;
  19. return 0;
  20. }