MCPcopy
hub / github.com/huangruiteng/CS-Notes / format

Method format

Notes/Debugging-and-Profiling/logger.py:22–25  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

20 }
21
22 def format(self, record):
23 log_fmt = self.FORMATS.get(record.levelno)
24 formatter = logging.Formatter(log_fmt)
25 return formatter.format(record)
26
27# create logger with 'spam_application'
28logger = logging.getLogger("Sample")

Callers 15

validateFunction · 0.80
python-logging.pyFile · 0.80
end_timer_and_printFunction · 0.80
gpu-nvidia.pyFile · 0.80
end_timer_and_printFunction · 0.80
python-backend.pyFile · 0.80
kill_procFunction · 0.80
run_cmd_with_outputFunction · 0.80
existsMethod · 0.80
removeMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected