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

Function log

start_webui.py:49–54  ·  view source on GitHub ↗
(message: str, level: str = "INFO")

Source from the content-addressed store, hash-verified

47 return False
48
49def log(message: str, level: str = "INFO") -> None:
50 LOGS_DIR.mkdir(exist_ok=True)
51 line = f"{datetime.now():%Y-%m-%d %H:%M:%S} [{level}] {message}"
52 print(line, flush=True)
53 with LAUNCHER_LOG.open("a", encoding="utf-8") as fh:
54 fh.write(line + "\n")
55
56
57def parse_args() -> argparse.Namespace:

Callers 7

ensure_docker_daemonFunction · 0.85
ensure_postgres_serviceFunction · 0.85
maybe_open_browserFunction · 0.85
_runnerFunction · 0.85
launch_webuiFunction · 0.85
mainFunction · 0.85
start_webui.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected