MCPcopy
hub / github.com/Textualize/rich / render_log

Function render_log

tests/test_log.py:23–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def render_log():
24 console = Console(
25 file=io.StringIO(),
26 width=80,
27 force_terminal=True,
28 log_time_format="[TIME]",
29 color_system="truecolor",
30 legacy_windows=False,
31 )
32 console.log()
33 console.log("Hello from", console, "!")
34 console.log(test_data, log_locals=True)
35 return replace_link_ids(console.file.getvalue()).replace("test_log.py", "source.py")
36
37
38def test_log():

Callers 2

test_logFunction · 0.85
test_log.pyFile · 0.85

Calls 4

logMethod · 0.95
ConsoleClass · 0.90
replaceMethod · 0.80
replace_link_idsFunction · 0.70

Tested by

no test coverage detected