MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / format

Method format

plain2code_logger.py:14–20  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

12
13class IndentedFormatter(logging.Formatter):
14 def format(self, record):
15 original_message = record.getMessage()
16
17 modified_message = original_message.replace("\n", "\n ")
18
19 record.msg = modified_message
20 return super().format(record)
21
22
23class ElapsedTimeFormatter(logging.Formatter):

Calls

no outgoing calls