MCPcopy Create free account
hub / github.com/ForgeRock/forgeops / format

Method format

lib/python/utils.py:102–106  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

100 }
101
102 def format(self, record):
103 log_fmt = self.NON_TTY_FORMATS.get(record.levelno)
104 formatter = logging.Formatter(log_fmt)
105 formatter.datefmt = '%Y-%m-%dT%H:%M:%S%z'
106 return formatter.format(record)
107
108class ColorFormatter(logging.Formatter):
109 """Logging color"""

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected