From e6b1cba6ca2f2573c408122e2ba59125369dc06b Mon Sep 17 00:00:00 2001 From: Hu Chunming <2657262686@qq.com> Date: Tue, 30 Apr 2024 17:53:43 +0800 Subject: [PATCH] 日志保存到日志文件中 --- sip/main.cpp | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/sip/main.cpp b/sip/main.cpp index d0423ec..ae5cc95 100644 --- a/sip/main.cpp +++ b/sip/main.cpp @@ -1,9 +1,12 @@  #include "WebSocketServer.h" +#include "./Utils/logger.hpp" int main(int argc, char *argv[]) { + set_default_logger(LogLevel(1), "sip server", "logs/main.log", 64 * 1024 * 1024, 30); + // if (argc <= 1) // { // printf("请输入待获取的摄像头的视频通道编码ID。"); -- libgit2 0.21.4