MCPcopy Index your code
hub / github.com/VectifyAI/PageIndex / __init__

Method __init__

pageindex/utils.py:284–292  ·  view source on GitHub ↗
(self, file_path)

Source from the content-addressed store, hash-verified

282
283class JsonLogger:
284 def __init__(self, file_path):
285 # Extract PDF name for logger name
286 pdf_name = get_pdf_name(file_path)
287
288 current_time = datetime.now().strftime("%Y%m%d_%H%M%S")
289 self.filename = f"{pdf_name}_{current_time}.json"
290 os.makedirs("./logs", exist_ok=True)
291 # Initialize empty list to store all messages
292 self.log_data = []
293
294 def log(self, level, message, **kwargs):
295 if isinstance(message, dict):

Callers

nothing calls this directly

Calls 1

get_pdf_nameFunction · 0.85

Tested by

no test coverage detected