MCPcopy Create free account
hub / github.com/Physical-Intelligence/openpi / CustomFormatter

Class CustomFormatter

scripts/train.py:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 level_mapping = {"DEBUG": "D", "INFO": "I", "WARNING": "W", "ERROR": "E", "CRITICAL": "C"}
34
35 class CustomFormatter(logging.Formatter):
36 def format(self, record):
37 record.levelname = level_mapping.get(record.levelname, record.levelname)
38 return super().format(record)
39
40 formatter = CustomFormatter(
41 fmt="%(asctime)s.%(msecs)03d [%(levelname)s] %(message)-80s (%(process)d:%(filename)s:%(lineno)s)",

Callers 1

init_loggingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected