MCPcopy Create free account
hub / github.com/LMCache/LMBenchmark / build_format

Function build_format

mooncake/utils.py:7–13  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

5
6
7def build_format(color):
8 reset = "\x1b[0m"
9 underline = "\x1b[3m"
10 return (
11 f"{color}[%(asctime)s] %(levelname)s:{reset} %(message)s "
12 + f"{underline}(%(filename)s:%(lineno)d:%(name)s){reset}"
13 )
14
15
16class CustomFormatter(logging.Formatter):

Callers 1

CustomFormatterClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected