MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / __init__

Method __init__

bot/utils/logger.py:40–43  ·  view source on GitHub ↗
(self, session_name)

Source from the content-addressed store, hash-verified

38 critical: MessageMethod
39
40 def __init__(self, session_name):
41 self.session_name = session_name
42 for method_name in ("trace", "debug", "info", "success", "warning", "error", "critical"):
43 setattr(self, method_name, disable_color_on_error(self._format, method_name))
44
45 def _format(self, message):
46 return f"{self.session_name} | {message}"

Callers

nothing calls this directly

Calls 1

disable_color_on_errorFunction · 0.85

Tested by

no test coverage detected