MCPcopy
hub / github.com/OpenPPL/ppq / wrap_header

Method wrap_header

ppq/log/logger.py:95–97  ·  view source on GitHub ↗
(self, type:str)

Source from the content-addressed store, hash-verified

93 return logger
94
95 def wrap_header(self, type:str) -> str:
96 cur_time = get_current_time()
97 return '[{}][{}][{}]: '.format(type, self._name, cur_time)
98
99 def info(self, msg: str):
100 header = self.wrap_header('INFO')

Callers 4

infoMethod · 0.95
warningMethod · 0.95
errorMethod · 0.95
debugMethod · 0.95

Calls 1

get_current_timeFunction · 0.85

Tested by

no test coverage detected