feat: 日志增强功能

This commit is contained in:
2026-04-14 20:52:41 +08:00
parent 579e67a3db
commit e895cdc9de
35 changed files with 1324 additions and 21 deletions

View File

@@ -73,7 +73,7 @@ kcp_session_stats_logger_t *kcp_session_stats_open_jsonl(const char *path) {
fclose(file);
return NULL;
}
omni_file_logger_init(&logger->file_logger, file);
omni_file_logger_init_path(&logger->file_logger, file, path, 0);
logger->enabled = 1;
return logger;
}