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

Class IndentedFormatter

plain2code_logger.py:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
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):

Callers 1

setup_loggingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected