MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / initLogDirectory

Method initLogDirectory

src/utils/logger.js:88–96  ·  view source on GitHub ↗

* 初始化日志目录

()

Source from the content-addressed store, hash-verified

86 /**
87 * 初始化日志目录
88 */
89 initLogDirectory() {
90 try {
91 if (!fs.existsSync(this.options.logDir)) {
92 fs.mkdirSync(this.options.logDir, { recursive: true })
93 }
94 } catch (error) {
95 console.error('创建日志目录失败:', error.message)
96 }
97 }
98
99 /**

Callers 1

constructorMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected