MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / __init__

Method __init__

mini_agent/logger.py:19–28  ·  view source on GitHub ↗

Initialize logger Logs are stored in ~/.mini-agent/log/ directory

(self)

Source from the content-addressed store, hash-verified

17 """
18
19 def __init__(self):
20 """Initialize logger
21
22 Logs are stored in ~/.mini-agent/log/ directory
23 """
24 # Use ~/.mini-agent/log/ directory for logs
25 self.log_dir = Path.home() / ".mini-agent" / "log"
26 self.log_dir.mkdir(parents=True, exist_ok=True)
27 self.log_file = None
28 self.log_index = 0
29
30 def start_new_run(self):
31 """Start new run, create new log file"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected