feat(logging): implement detailed logging for Codex operations and HTTP requests

This commit is contained in:
HouYunFei
2026-07-28 17:42:11 +08:00
parent b6e9954c0a
commit b3b02f75a9
13 changed files with 334 additions and 41 deletions
+7
View File
@@ -0,0 +1,7 @@
/** 将日期格式化为适合文件名使用的本地日期字符串。 */
export function formatDateForFilename(date = new Date()) {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
return `${year}-${month}-${day}`;
}