MCPcopy
hub / github.com/1rgs/claude-code-proxy / format

Method format

server.py:72–76  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

70 BOLD = "\033[1m"
71
72 def format(self, record):
73 if record.levelno == logging.debug and "MODEL MAPPING" in record.msg:
74 # Apply colors and formatting to model mapping logs
75 return f"{self.BOLD}{self.GREEN}{record.msg}{self.RESET}"
76 return super().format(record)
77
78
79# Apply custom formatter to console handler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected