Log logo rich: log

1 2 3 4 5 6 7 8 9 10 11 12

Rich comes with an amazing suite of tools to make logging more visually pleasing.

from rich.console import Console
import time

console = Console()
for i in range(10):
    console.log(f"I am about to sleep={i}")
    time.sleep(0.2)
    console.log(f"But I am briefly awake now.")