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

Function log

tests/test_add_sinks.py:17–23  ·  view source on GitHub ↗
(sink, rep=1)

Source from the content-addressed store, hash-verified

15
16
17def log(sink, rep=1):
18 logger.debug("This shouldn't be printed.")
19 i = logger.add(sink, format="{message}")
20 for _ in range(rep):
21 logger.debug(message)
22 logger.remove(i)
23 logger.debug("This shouldn't be printed neither.")
24
25
26async def async_log(sink, rep=1):

Callers 11

test_stdout_sinkFunction · 0.85
test_stderr_sinkFunction · 0.85
test_devnullFunction · 0.85
test_file_path_sinkFunction · 0.85
test_file_opened_sinkFunction · 0.85
test_function_sinkFunction · 0.85
test_file_object_sinkFunction · 0.85
test_flushFunction · 0.85
test_invalid_sinkFunction · 0.85

Calls 3

debugMethod · 0.80
addMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected