MCPcopy
hub / github.com/Delgan/loguru / test_using_logging_function

Function test_using_logging_function

tests/test_interception.py:155–161  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

153
154
155def test_using_logging_function(writer):
156 with make_logging_logger(None, InterceptHandler()):
157 logger.add(writer, format="{function} {line} {module} {file.name} {message}")
158 logging.warning("ABC")
159
160 result = writer.read()
161 assert result == "test_using_logging_function 158 test_interception test_interception.py ABC\n"

Callers

nothing calls this directly

Calls 5

make_logging_loggerFunction · 0.85
InterceptHandlerClass · 0.85
addMethod · 0.80
warningMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…