MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / AgentOpsLogFileFormatter

Class AgentOpsLogFileFormatter

agentops/logging/formatters.py:27–34  ·  view source on GitHub ↗

Formatter for file logging that removes ANSI escape codes.

Source from the content-addressed store, hash-verified

25
26
27class AgentOpsLogFileFormatter(logging.Formatter):
28 """Formatter for file logging that removes ANSI escape codes."""
29
30 ANSI_ESCAPE_PATTERN = re.compile(r"\x1b\[[0-9;]*m")
31
32 def format(self, record):
33 record.msg = self.ANSI_ESCAPE_PATTERN.sub("", str(record.msg))
34 return super().format(record)

Callers 1

configure_loggingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…