MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_logs_dir

Function get_logs_dir

src/core/utils.py:427–441  ·  view source on GitHub ↗

获取日志目录 Returns: 日志目录 Path 对象

()

Source from the content-addressed store, hash-verified

425
426
427def get_logs_dir() -> Path:
428 """
429 获取日志目录
430
431 Returns:
432 日志目录 Path 对象
433 """
434 settings = get_settings()
435 log_file = Path(settings.log_file)
436 log_dir = log_file.parent
437
438 # 确保目录存在
439 log_dir.mkdir(parents=True, exist_ok=True)
440
441 return log_dir
442
443
444def format_duration(seconds: int) -> str:

Callers

nothing calls this directly

Calls 1

get_settingsFunction · 0.85

Tested by

no test coverage detected