I am using RichHander
to format log output inside Python. While this works great locally, when I run inside GitLab, it seems to default to using a terminal that is 80 characters wide. This makes the output fairly difficult to read and scan quickly. I would like to change this default width for the RichHandler, but I don't see a way to do it.
Is there a way to set a minimum console width for the Python RichHandler log handler?
# Pseudocode:
import logging
from rich.logging import RichHandler
def setup_logging():
logger = logging.getLogger('myLogger')
richFormatter = logging.Formatter('%(message)s')
richHandler = RichHandler()
# Something like: richHandler.setMinimumWidth(255)
richHandler.setFormatter(richFormatter)
logger.addHandler(richHandler)