MCPcopy Create free account
hub / github.com/alibaba/BladeDISC / format

Method format

scripts/python/common_setup.py:113–120  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

111 self.use_color = use_color
112
113 def format(self, record):
114 levelname = record.levelname
115 if self.use_color and levelname in COLORS:
116 levelname_color = (
117 COLOR_SEQ % (30 + COLORS[levelname]) + levelname + RESET_SEQ
118 )
119 record.levelname = levelname_color
120 return logging.Formatter.format(self, record)
121
122 class ColoredLogger(logging.Logger):
123 FORMAT = "{}%(asctime)s{} %(levelname)19s %(message)s".format(

Callers 15

configure_compilerFunction · 0.45
build_tao_compilerFunction · 0.45
test_tao_compilerFunction · 0.45
run_py_testFunction · 0.45
test_tao_bridgeFunction · 0.45
prepare_envFunction · 0.45
generate_build_infoFunction · 0.45
make_packageFunction · 0.45
mainFunction · 0.45
reportMethod · 0.45
wrapperFunction · 0.45
ColoredLoggerClass · 0.45

Calls

no outgoing calls

Tested by 2

test_tao_compilerFunction · 0.36
test_tao_bridgeFunction · 0.36