Put logging into a Column? #900
-
I love the output of -chris |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can combine Live and logging so that your stats are underneath the log messages -- which would be simple to implement. Having them side by side would be more effort as you would need to render the entire 'screen' each update. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that works well enough for me, thanks for the quick reply! For anyone trying this: It's important to explicitly use the same from rich.console import Console
console = Console()
# ...
rh = RichHandler(console=console)
logging.basicConfig(handlers=[rh])
# ...
with Live(console=console, refresh_per_second=1) as live:
# ... |
Beta Was this translation helpful? Give feedback.
You can combine Live and logging so that your stats are underneath the log messages -- which would be simple to implement. Having them side by side would be more effort as you would need to render the entire 'screen' each update.