Skip to content

Logging Utilities

console

console() -> Console

Return a shared Rich Console instance with basic theming.

Source code in src/spark_fuse/utils/logging.py
12
13
14
15
16
17
def console() -> Console:
    """Return a shared Rich Console instance with basic theming."""
    global _console
    if _console is None:
        _console = Console(theme=Theme({"info": "cyan", "warn": "yellow", "error": "bold red"}))
    return _console