MCPcopy
hub / github.com/nonebot/nonebot2 / log

Function log

nonebot/utils.py:411–414  ·  view source on GitHub ↗
(level: str, message: str, exception: Exception | None = None)

Source from the content-addressed store, hash-verified

409 """
410
411 def log(level: str, message: str, exception: Exception | None = None):
412 logger.opt(colors=True, exception=exception).log(
413 level, f"<m>{escape_tag(logger_name)}</m> | {message}"
414 )
415
416 return log

Callers

nothing calls this directly

Calls 1

escape_tagFunction · 0.85

Tested by

no test coverage detected