(logPath: string)
| 100 | } |
| 101 | |
| 102 | function ensureLogDir(logPath: string): void { |
| 103 | const dir = dirname(logPath); |
| 104 | if (!existsSync(dir)) { |
| 105 | mkdirSync(dir, { recursive: true, mode: 0o700 }); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | function resolveLogLevel(): ReturnType<typeof normalizeLogLevel> { |
| 110 | const raw = process.env.XCODEBUILDMCP_DAEMON_LOG_LEVEL; |