MCPcopy Index your code
hub / github.com/KnowledgeXLab/LeanRAG / format

Method format

tools/logger_factory.py:34–39  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

32 RESET = Style.RESET_ALL if COLORAMA_AVAILABLE else ''
33
34 def format(self, record):
35 color = self.COLOR_MAP.get(record.levelno, '')
36 message = super().format(record)
37 if color:
38 message = f"{color}{message}{self.RESET}"
39 return message
40
41def setup_logger(logger_name, level=logging.INFO):
42 '''

Callers 9

query_graphFunction · 0.80
process_clusterFunction · 0.80
process_relationFunction · 0.80
perform_clusteringMethod · 0.80
summarize_entityFunction · 0.80
summarize_entityFunction · 0.80
score_tripleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected