Skip to content
Discussion options

You must be logged in to vote

Managed to achieve that by modifying the _log_render attribute manually:

def create_console(verbose=True, style=None, width=100):
    if verbose:
        console = Console(style=style, width=width)
    else:
        f = open(os.devnull, "w")
        console = Console(file=f, style=style, width=width)
    console._log_render = LogRender(
            omit_repeated_times=False,
            show_time=True,
            show_path=False,
            time_format="[%X]",
        )
    return console

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by apcamargo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant