Why is Console.log() output width limited in Docker Compose logs? #3436
-
Hi everyone, I'm using the Rich library in my Python project to produce pretty logs with Here's a brief overview of how I'm setting up Rich: from rich import pretty, traceback
from rich.console import Console
pretty.install()
traceback.install(show_locals=False)
console = Console(log_path=False)
console.log("This is a sample log message that should ideally not wrap in the middle of the sentence.") In Docker Compose, the logs appear wrapped even though my terminal width should support wider lines. Has anyone encountered similar issues? Is there a specific setting or parameter I need to adjust to ensure the logs maintain their intended width when viewed in Docker Compose? Any help or pointers would be greatly appreciated! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm still not too familar with Docker but this #1747 might help? |
Beta Was this translation helpful? Give feedback.
I'm still not too familar with Docker but this #1747 might help?